View Single Post
  #1 (permalink)  
Old 06-11-2008, 01:12 PM
frenchmarky frenchmarky is offline
Junior Member
 
Join Date: Jun 2008
Location: moreno valley, calif
Posts: 10
Default IF within LOOP bug?

I am experiencing a weird apparent AA bug when I place an IF/END IF within a LOOP. Currently the IF statement is false (and the only statement in it is a msgbox, which is not popping up.) Even when it's false, the program just bails out with a 'completed' status at that point and I can't see why or how.
At the point that it's running here, Clipboard = "IN-PROGRESS":

Loop While $Clipboard$ Not Equal To "COMPLETED" Then
Delay (500 ms)
If $Clipboard$ Equal To "ERROR" Then
Message Box "Error condition!!"
End If
End Loop

I tried replacing the IF with a LOOP of the same logic and it works fine, doesn't bail out of the code. And program doesn't bail anymore if I just take the IF out completely.
Thanks!
Reply With Quote