Turtle Command

die

Turtles die, meaning that they stop running all code and disappear forever.

Examples:

if pc = red [die] makes the turtle die if the patch its on is red.

Related commands:
kill