Statement <CONTINUE>

Syntax:

CONTINUE

Description:

The <CONTINUE> statement interrupts the execution of the current iteration of a loop. In the case of a precondition loop (<FOR> or <WHILE>), control is transferred to the beginning of the loop, where the condition is checked (for the <FOR> loop, the new value of the loop variable is calculated before that). If the condition is true, the loop continues. In the case of a postcondition loop (<REPEAT>), control is transferred to the end of the loop, where the condition is checked. If the condition is false, the loop continues.

The use of the <CONTINUE> statement is only allowed within the body of a loop; in all other cases, an error message is issued.


See also:

The cycle statement <FOR>

The cycle statement <REPEAT>

The cycle statement <WHILE>

Statement <BREAK>