Note: information on this page refers to Ceylon 1.0, not to the current release.
continue statement
The continue statement is a control directive that causes immediate execution
of the next iteration of a for or while loop.
Usage
The general form of the continue statement is
// ...within a while or for statement
// and often guarded by some condition
continue;
Description
Execution
Within a for or while statement the continue directive can be used to
skip to the next iteration of the enclosing for or while statement without
executing the rest of the current block.
Notes
- Java's 'labelled'
continuedirective is not supported. Thecontinuedirective operates on the directly enclosingfororwhilestatement.
See also
- The
breakstatement - The
forstatement - The
whilestatement - Control directives in the Ceylon language specification