XFA Specification
Chapter 23, FormCalc Specification
Arithmetic Built-in Functions
835
Count()
This function returns the count of the non-null elements of a given set of numbers.
Syntax
Count(n1 [, n2...])
Parameters
n1
is the first argument to count.
n2, ...
are optional additional arguments in the set.
Returns
The count.
Examples
Count(5, "ABCD", "", null)
returns 3.
Count(Quantity[*])
returns the number of occurrences of
Quantity
that are non-null, and returns 0 if all of occurrences of
Quantity
are null.