This is a simple example, the real one has 11 files, but the results are confusingly the same: It evaluates False even though both files and directory exist (I’ve tried “file” and “files” as well). Running the command on one file at a time returns true. My goal was to return true if all files existed but is this logic looking for a single file whose name is both?
exist file whose (name of it = "OffScrub_O16msi.vbs" and name of it = "OffScrub_O15msi.vbs") of folder "c:\temp\office365\"
Just remember that the bracketed part of a “whose” gets an individual item passed into it like a for loop, not all the items. So as it goes through the loop it is only looking at one file at a time in your case.