November 27, 200322 yr I have a series of "if" statements within a loop, I've tried a few combinations, but when I run the script, it either: 1. Stops when the criteria is not met and does not go on to the next if statements that follow (I need the script to check the other "if"'s). 2. It just checks the first "if" statement and does not even go on to the next statements... I've tried this: Loop If...... Print If..... Print End If End If Exit Loop I'v also tried this Loop If...... Print Else Refresh Window (Just to give it something to do so it goes on to the next If) If..... Print End If End If Exit Loop How do I do this?? I have 9 if statements and I need all of them to be executed. Thanks a lot for the help guys!
November 27, 200322 yr Author I just want to clarify that the other If statement must be executed wether the conditional is met or not. That's where my problem lies in the first place.
November 27, 200322 yr Your second script above means that the first, the second, or neither will occur, in that order, which is fairly normal logic. But if you want the tests to occur independently, so that in some cases both actions happen, then each is a self-standing If. If... Print End If If... Print End if In other words, it just keeps on going, no matter what happens before it. Whenever the condition is met it performs the action, however many.
Create an account or sign in to comment