The turtle or link dies.
if xcor > 20 [ die ] ;; all turtles with xcor greater than 20 die ask links with [color = blue] [ die ] ;; all the blue links will die
A dead agent ceases to exist. The effects of this include:
ask turtles [ die print "last words?" ]
, no last words will be printed, because the turtles are already dead before they have a chance to print anything.nobody
in it. So for example let x one-of turtles ask x [ die ] print x
prints nobody
.reset-perspective
had been run.See also: clear-turtles clear-links
Take me to the full NetLogo Dictionary