XFA Specification
Chapter 23, FormCalc Specification
Logical Built-in Functions
866
Logical Built-in Functions
Most of these logical functions return the boolean results true or false, represented by the numeric values
of 1 and 0, respectively.
Some of the following built-in function examples make use of the identifier $ to mean a reference to the
value of the object to which the form calculation is bound; this object is typically called the referencing
object.
Choose()
This function selects a value from a given set of parameters.
Syntax
Choose(n1, s1 [, s2...])
Parameters
n1
is the n'th value to select from the set.
s1
is the first value of the set.
s2, ...
are optional additional value of the set.
Returns
The selected argument or null if its first parameter is null.
If n1 is less than 1 or greater than the number of arguments in the set, the function returns an empty
string.
Examples
Choose(3, "Accounting", "Administration", "Personnel", "Purchasing")
returns "Personnel".
Choose(Quantity, "A", "B", "C")
returns B if the value in Quantity is 2.
Home Index Bookmark Pages
Pages: Home Index All Pages