continue
The EGL continue statement returns control to the start of a block of code controlled by a for, forEach, or while statement. EGL evaluates the conditions for continuing the loop at that point, and either continues running the loop or exits and continues processing with the next statement after the loop.
The continue statement must be in the same function as the containing statement; you cannot put the continue statement in a function that you call from inside the loop.
Syntax

- statement
- You can specify the EGL statement that you want to continue (for, forEach, or while). This option is useful when you are deep in nested loops. Processing continues with the nearest specified statement.
- label
- A label that is attached to an enclosing for, forEach, or while statement. Processing continues with the referenced statement.
Example
The following example prints the members of an array, inserting
a blank line between each group of ten:
for (i from 1 to 100 by 1)
printReport(myArray[i]);
if ((i % 10) != 0)
continue;
end // if
printReport(blankLine);
end // for
Compatibility
| Platform | Issue |
|---|---|
| JavaScript™ | continue is not supported. |