Next: , Previous: Choose, Up: Statements


6.11.5 The continue Statement

The continue statement terminates the current pass of the foreach loop with Label and starts the next pass. If the current pass is the last one, the loop will be left.

     continue Label;

If the label is omitted, the statement affects the innermost foreach loop it is contained in. The statement must be situated in the body of the foreach loop it wants to affect.