XLOGO has three break commands: stop, stopall and op, output.
stop can have two results.
- If it is included in a repeat or while loop, the program jumps out of the loop there and then.
- If it occurs in a procedure, the program breaks out of the procedure immediately.
The program breaks out of all procedures immediately and stops.
output, op allows breaking out of a procedure with a value to be returned.