Turtle Command

count-frogs-here

Returns the number of turtles whose breed is frogs which are on the current patch.

Examples:

if count-frogs-here > 2 [setc blue] makes the turtle set its color to blue if there are more than two turtles of type frog on its current patch.

Related commands: