This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : sum(group, value) | aTbRef Site Map |
sum(group, value) |
Operator Type: | Boolean |
Operator Scope of Action: | Group |
The operator sum() adds lists. (See sum_if() for a related new operator)
sum(where,attribute)
visits each note described by where and adds the value of the designated attribute to the total.
where may be any of {child,descendent,sibling,ancestor,all}.
In addition, where may be argument that designates a particular (single) note other than this.
what can be any expression, but is typically an attribute.
For example,
sum(child,$WordCount)
constructs the current word count of the children of the note.
Up: Full Operator List | |
Previous: substr(data,start,length) | Next: sum_if(group,condition,value) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]