dheraud Posted November 27, 2003 Posted November 27, 2003 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!
dheraud Posted November 27, 2003 Author Posted November 27, 2003 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.
Fenton Posted November 27, 2003 Posted November 27, 2003 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.
Recommended Posts
This topic is 8013 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now