Turtle and Observer Command

min-of-turtles-with `[condition] [list of commands]`

Reports the lowest value of `[list of commmands]` when run over the turtles that satisfy `condition`. If there are no turtles in which `condition` is true, returns `maxnum`, the largest number possible without going into positive infinity. 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.

Note: When a turtle calls the command, it is not included as part of the calculation.

Examples:

min-of-turtles-with [color = red] [speed] reports the speed of the slowest red turtle.

Related commands: