Break
This keyword can be
used in loops initialized using the for
statement to stop this loop. When the script is interrupted, the script evaluation goes directly to the instruction located directly after the loop. Available on the client only.
Example
A script that computes the total length of several lines and stops computing once the total length is superior to 100mm.
Let i,result (Integer) result = 0 i = 1 for i while i < lines.Size() { result = length(lines[i]) if result > 100mm { break } }