sum(group, value)

Tinderbox Icon


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.


Possible relevant notes (via "Similar Notes" feature):

Up: Group-based operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Scope : Group-based operators : sum(group, value)

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox