| Operator Type: | Function |
| Operator Scope of Action: | Group |
| Operator Purpose: | Mathematical |
sum(group,value)
This computes the arithmetic sum of every value in a group. See sum_if() for a related conditional operator.
group may be any of {children,descendants,siblings,ancestors,all}.
In addition, group may be argument that designates a particular (single) note other than this.
value can be any expression, but is typically an attribute value.
For example,
sum(children,$WordCount)
constructs the current word count of the children of the note.
