up previous next
continue    --    continue directly with next loop iteration


Syntax
continue

Description
This command must be used inside a loop statement (for, foreach, repeat, or while). When executed, the current loop iteration is terminated, and the control passes directly to the next iteration.

In the case of nested loops continue refers only to iterations of the innermost loop in which it appears; to affect loops outside the innermost one, you must use break to break out of the current loop command.

Example
/**/  for i := 5 to 1 step -1 do
/**/    for j := 1 to 4 do
/**/      if i = j then continue; endif;
/**/      print j, " ";
/**/    endfor;
/**/    println;
/**/  endfor;
1 2 3 4
1 2 3
1 2 4
1 3 4
2 3 4

See Also