NetLogo Help: nobody

### nobody

This is a special value which some primitives such as turtle, one-of, max-one-of, etc. report to indicate that no agent was found. Also, when a turtle dies, it becomes equal to nobody.

Note: Empty agentsets are not equal to nobody. If you want to test for an empty agentset, use any?. You only get nobody back in situations where you were expecting a single agent, not a whole agentset.

    set target one-of other turtles-here
    if target != nobody
      [ ask target [ set color red ] ]

Take me to the full NetLogo Dictionary