The Continue Statement

Syntax

$ ContinueStatement = CONTINUE ";"

Description

The Continue statement breaks the current iteration cycle and goes to the next iteration. If there is no enclosing cycle in the statement’s block, the statement does nothing.

Example

Sub Main;

Var

i: Integer;

Begin

For i := 1 To 2 Do

Debug.WriteLine(i);

Continue;

Debug.WriteLine("Hello");

End For;

End Sub Main;

After executing the example the cycle will run twice, and the word "Hello" will not be displayed in the console window.

See also:

Statements