Skips the rest of a loop statement's current iteration and begins a new one.
Continue , LoopLabel
Continue behaves the same as reaching the loop's closing brace:
The use of Break and Continue are encouraged over Goto since they usually make scripts more readable and maintainable.
Break, Loop, Until, While-loop, For-loop, Blocks, Labels
Displays 5 message boxes, one for each number between 6 and 10. Note that in the first 5 iterations of the loop, the Continue statement causes the loop to start over before it reaches the MsgBox line.
Loop, 10 { if (A_Index <= 5) continue MsgBox %A_Index% }
Continues the outer loop from within a nested loop.
outer: Loop 3 { x := A_Index Loop 3 { if (x*A_Index = 4) continue outer ; Equivalent to continue 2 or goto continue_outer. MsgBox %x%,%A_Index% } continue_outer: ; For goto. ErrorLevel:=ErrorLevel ; Prior to revision 57, labels could not point to the end of a block. }