Turtle and Observer Command

stop

Exits the current procedure immediately. Note: stop does not stop any callers of the procedure, only the procedure itself.

Examples:

to check-patch-color

if pc-ahead = red [rt 90] stop

if pc-ahead = green [lt 90] stop

fd 1

end

Related commands:
output