Operator Scope of Action:
Operator First Added:
Function [other Function type actions]
Group [operators of similar scope]
Mathematical [other Mathematical operators]
This computes the arithmetic Number sum of every value in a group. See sum_if() for a related conditional operator.
group describes the notes to be examined and may be any group designator including a find() query. sum() omits notes for which $Searchable is false.
value can be any expression, but is typically an attribute value.
$MyNumber = sum(children,$WordCount);
constructs the current word count of the children of the note.
See also List/Set.sum().