End the current iteration of a loop

continue

End the current iteration of a loop


SYNTAX

continue

The continue command may only be used within a for, while or do loop. It causes the current iteration of the loop to end. Statements between the continue command and the loop’s closing brace are skipped. The loop then continues only if its continuation condition is still true.


NOTES

  • If this command is encountered outside a for, while or do statement, the compiler error “A continue instruction must be inside a loop” is generated.

  • The special label CONTINUE may be used within the trap clause of a Sculptor command to perform the same function.


EXAMPLE

PathNo = 0

for (Loop = 1; Loop <= _MAXPATHS; Loop ++) {
     if (Path <> HistFile.Path[Loop]) then continue
     PathNo = Loop
     break
}

RELATED TOPICS

CONTINUE

break