Continue Statement

Passes control to the next iteration of the smallest enclosing For, Loop, Repeat, or While statement in which it appears.

Syntax

Continue

Comments

Program statements between the Continue statement and the EndLoop, Next, EndWhile, and Until are skipped.

Example

for i=0 to 3 do

print i,

if i > 1 then

continue

endif

print i,

next

! The output is: 0 0 1 1 2 3

See Also

ExitLoop, For, Loop, Repeat, While