How could I break an inner loop and continue an outer loop (thus skipping the rest of the outer loop) in the same line/block as the break command for the inner loop?
The only way I can currently think of is using a var that I have to check after the inner loop and if true sets continue for the outer loop
Any other suggestions?
Break an inner loop and continue an outer loop
Break an inner loop and continue an outer loop
ciao
toralf
toralf
Re: Break an inner loop and continue an outer loop
Like this?
Code: Select all
loop
{
msgbox % A_Index
loop
{
continue, 2
msgbox never going to be shown
}
msgbox never going to be shown
}
Re: Break an inner loop and continue an outer loop
Thanks a lot. I thought I had to send first a break. I was mistaken.
ciao
toralf
toralf
Re: Break an inner loop and continue an outer loop
__ __https://autohotkey.com/docs/commands/Break.htm
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Who is online
Users browsing this forum: imstupidpleshelp and 176 guests