I have this Code within a UDF:
For A = 1 to ItemCount(Selected, @Tab)
Item = ItemExtract(A, Selected, @Tab)
Filename = StrTrim(ItemExtract(1, Item, "|"))
Size = StrTrim(ItemExtract(2, Item, "|"))
LogAPI(Handle, LogFile, "Accessing: %FileName% (%Size% Bytes)")
If iFTPFileExist(conHandle, UserID, Filename) Then
Message(A, "TRUE")
Else
Message(A, "FALSE")
Endif
Message(A, "Loop")
Next A
When I run it Message Boxes appear as Follows:
1 TRUE
1 FALSE
1 LOOP
2 TRUE
2 FALSE
2 LOOP
This implies the IF is running both the TRUE and FALSE conditions?