continue

The EGL continue statement transfers control to the end of a for, forEach, or while statement that itself contains the continue statement. Execution of the containing statement continues or ends depending on the logical test that is conducted as usual at the start of the containing statement.

The continue statement must be in the same function as the containing statement.


Syntax diagram for the continue statement

for, forEach, or while

Identifies the innermost containing statement of the specified type. If you specify one of those statement types, the continue statement must be contained in a statement of that type. If you do not specify a statement type, the result is as follows:

  • The continue statement transfers control to the end of the innermost containing for, forEach, or while statement; and

  • The continue statement must be contained in a statement of one of those types.

Related tasks
Syntax diagram

Related reference
EGL statements