min-of-patches [list of commands]
Reports the lowest value of [list of commands] when run
over all of the turtles. Note: This command can also be executed by patches,
for example within an ask-patches statement.
Note: If [list of commands] contains no numbers, the greatest
possible number is returned. If some of the [list of commands] ,
when evaluated, are not numbers, those values are ignored.
Examples:
min-of-patches [food] reports the smallest value of the patch variable
food for all patches.
Related commands:
|