Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
jofu
Beginner


Joined: 02 Nov 2003
Posts: 12
Location: USA

PostPosted: 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?
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net