Special label used in trap clauses to terminate a loop¶
BREAK |
Special label used in trap clauses to terminate a loop or case |
SYNTAX
trap = BREAK
This label is only used within the trap clause of a Sculptor command. It immediately terminates the current iteration of a for, while or do loop, or the case section of a switch statement, and passes control to the statement which follows the loop’s terminating right brace.
trap may be any valid trap for the Sculptor command being used.
NOTES
Functionally equivalent to the break command.
EXAMPLE
while (1) {
next Samples nsr = BREAK riu = CONTINUE
Count ++
ProcSample()
}
RELATED TOPICS |