Observer

ask-turtles [list of commands]

Parameters:
[list of commands] List of turtle commands A list of commands for the turtles to run

Description:
Asks all turtles to run the [list of commands]. The observer will wait for all of the turtles to finish before continuing.

Asking all of the turtles to do something is a moderately expensive operation since StarLogo creates a thread for each turtle. Try to group commands that you would have put into separate ask-turtles into the same one to minimize thread creation overhead.

Examples:
ask-turtles [fd 1] will make all of the turtles move forward 1 step.

Related Commands:
ask-breed ask-list-of-turtles ask-patch-at ask-patches ask-turtle ask-turtles-with