Skip to main content
Version: 6.x

Next iteration (CONTINUE)

The next iteration operator creates an action that skips the execution of the remaining code in the current iteration and moves to the next iteration of the loop (normal or recursive). If the created action is not inside a loop, its behavior becomes similar to the action created by the exit operator.

Language

The next iteration operator syntax is described by the CONTINUE operator.

Example

testContinue ()  {
FOR iterate(INTEGER i, 1, 5) DO {
MESSAGE 'before';
IF i == 3 THEN CONTINUE; // no message 'after' for i == 3
MESSAGE 'after';
}