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.
nobodyin it. So for example
let x one-of turtles ask x [ die ] print xprints
reset-perspectivehad been run.
Take me to the full NetLogo Dictionary