mIRC Home    About    Download    Register    News    Help

Print Thread
'breaking; out of a while loop #201224 23/06/08 01:19 AM
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
How do you 'break' out of a while loop? One way I though of was to change the inc couter to one higher than the stop count.


I registered; you should too.
Re: 'breaking; out of a while loop [Re: AWEstun] #201225 23/06/08 01:42 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You've used the answer in your own question: Using the break statement.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: 'breaking; out of a while loop [Re: starbucks_mafia] #201368 26/06/08 08:59 PM
Joined: Apr 2007
Posts: 228
M
Mpot Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
Uh.. Ctrl + Break?