ask-list-of-turtles [list of turtle ID numbers] [list of commands]
Turtles whose who numbers (ID numbers) are in [list of turtle ID numbers] run [list of commands] . The caller of this command waits for it to finish before continuing. If some invalid who numbers make up [list of turtle ID numbers] , they are ignored.
Examples:
ask-list-of-turtles [4 6 10 14] [fd 1] makes 4 turtles (those with who numbers 4, 6, 10, and 14) move forward one step.
Related commands:
ask-turtle ask-turtles
|