all? 4.0
all? agentset reporter
Reports true if all of the agents in the agentset report true for the given reporter. Otherwise reports false as soon as a counterexample is found.
If the agentset is empty, reports true.
The reporter must report a boolean value for every agent (either true or false), otherwise an error occurs.
if all? turtles [color = red]
[ show "every turtle is red!" ]See also any?.