XFA Specification
Chapter 23, FormCalc Specification
Arithmetic Built-in Functions
841
Sum()
This function returns the sum of the non-null elements of a given set of numbers.
Syntax
Sum(n1 [, n2...])
Parameters
n1
is the first number to sum.
n2, ...
are optional additional numbers in the set.
Returns
The sum of its non-null parameters, or null if all of its parameters are null.
Examples
Calling Sum() as follows …
Sum(1, 2, 3, 4)
Sum(Amount[*])
Sum(Amount[2], Amount[3])
Returns
10
The sum of all occurrences of the object
Amount
The sum of two occurrences of the object
Amount
Home Index Bookmark Pages
Pages: Home Index All Pages