I want to go from the nested loop to the end of the main loop several times (the amount of times of the main loop).
"Goto" doesn't get the job done because it goes there, but then it freezes, it doesn't repeat the amount of times that the main loop is supposed to run.
In this example how to go from the first nested loop to the end of the main loop three times (amount of the main loop)?
Code: Select all
Loop, 3 ; Main Loop
{
Loop ; First Nested Loop
{
If ... ; if something happens then go to label L1
Goto, L1
}
Loop ; Second Nested Loop
{
}
L1: ; It should come here three times.
MsgBox, 0, , End of Loop ; This message should appear three times.
}