Turtle and Observer Command

max-of-turtles-with condition [list of commands]

Reports the highest value of [list of commands] when run over the turtles that satisfy condition. If there are no turtles in which condition is true, returns minnum, the smallest number possible without going into negative infinity. Note: This command can also be executed by patches, for example within an ask-patches statement.

Examples:

Related commands: