count-breed-here-with
[condition]
Parameters:
[condition] |
List of turtle commands |
list of commands that evaluates to either true or false |
Description:
Returns the number of turtles of the breed specified on the caller's patch that meet the condition specified in [condition].
Examples:
if count-cars-here-with [color = red] > 1 [fd 1]
This will cause all of the turtles on a patch with more than one red turtle of the breed cars on it to move forward one.