continue Statement

Syntax A

Syntax B

Usage

The continue statement ends the current iteration of a loop and begins the next. Any conditional expressions are reevaluated before the loop reiterates.

A label may be used to indicate the point at which execution should continue. A label consists of a legal identifier, followed by a colon, placed at the left margin of the work area.

Example

The following example writes the numbers 1 through 6 and 8 through 10, followed by the string ".Test". The use of the continue statement after "if (i==7)" prevents the write statement for 7, but keeps executing the loop.