This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

sum(group, value)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Group   [operators of similar scope]

 Mathematical   [other Mathematical operators]

 Baseline

 


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.



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : sum(group, value)