ask-breed-with
[condition] [list-of-commands]
Parameters:
[condition] |
List of commands |
list of commands that evaluates to either true or false |
[list-of-commands] |
List of turtle commands |
list of commands to run |
Description:
This observer command asks all of the turtles of the breed specified that satisfy [condition] to run the [list-of-commands]. The observer will wait for the turtles to finish before moving on.
Examples:
ask-frogs-with [color = green] [fd 1]
has all of the turtles of color green and breed frogs move forward 1
Related Commands:
ask-breed