sum-of-breed-with
[condition] [list-of-commands]
Parameters:
[condition] |
List of commands |
list of commands that evalutes to true or false |
[list-of-commands] |
List of commands |
list of commands that return a number |
Description:
Reports the total value of [list-of-commands] when run over the turtles of the breed specified that satisfy [condition]. If there are no turtles of the specified breedin which [list-of-commands] is true, 0
is returned.
Notes:
Note: This command can
also be executed by patches, for example within an ask-patches
statement.
Related Commands:
average-of-breed-with
max-of-breed-with
median-of-breed-with
min-of-breed-with
mode-of-breed-with
sdev-of-breed-with
sum-of-breed
sum-of-turtles-with
variance-of-breed-with