If - Then - And
Posted on 2006-06-04
If I have the following IF statement:
If DirCheckFunc(DirPath1) and DirCheckFunc(DirPath2) Then
MsgBox ("Something Here")
Basically, the DirCheckFunc is a function returning a True or False for each one DirPath1 and DirPath2. In the MsgBox for the Else portion, I would like to identify the one that caused the statement to be False. How do or can I determine which one caused it to be false without having to check each one again.