I am checking the existence of two files and after that setting a condition but I am getting an error message that the syntax is incorrect when I add the AND
If (System.IO.Directory.GetFiles(CStr(Dts.Variables("VNetworkFolderName").Value), "Z_Attendance.xls").Length > 0and System.IO.Directory.GetFiles(CStr(Dts.Variables("VNetworkFolderName").Value), "Z_EP.xls").Length > 0) Then Dts.Variables("VCountAPAListFile").Value = TrueElse Dts.Variables("VCountAPAListFile").Value = FalseEnd If
But if I check just one file without using AND statement, it works fine.