Next: Multiturtle Mode
Up: List of primitives
Previous: Advanced fill function:
Contents
Index
LOGO 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 then and
there. If it occurs in a procedure, the program breaks out of the
procedure immediately.
- stopall the program breaks out of all the
procedure immediately and stops.
- output, op allows breaking out of a procedure with a value to
be returned.
See the numerous instances of usage of these two primitives in the
examples at the end of this manual.
Loïc
2008-06-08