|
jofu Beginner
Joined: 02 Nov 2003 Posts: 12 Location: USA
|
Posted: Mon Feb 09, 2004 10:10 pm
stop a loop? |
I have a loop with a nested if statement, when the if evaluates to true, I want the loop to stop processing...how can I do this?
|
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Mon Feb 09, 2004 10:17 pm |
#ABORT 1 would stop all currently running scripts and may be useful for you.
A better solution might be to have a variable that the loop condition checks (if you are using a #WHILE) called @KeepLooping or something that you can set to 0 and cause the loop to not continue. |
|
|
|
|
|