Turtle and Observer Command

grab number ilist

Caller instructs turtles with who number(s) number(s) to execute ilist. The who number of the turtles being grabbed are stored in partner, if there is one, or partners, if there are many. A turtle cannot grab itself.
Example: grab one-of-turtles-here [setc red setc-of partner blue]
This turns the caller red and the grabbed turtle blue. If there are no other turtles on the caller's patch, the ilist does not get executed and no turtles change color.

Related functions:
partner partners