**List functions** iterate over a list, check a condition, and return a value. There are several list functions, and each returns a different type of value. These functions are:

## listCount

The ** listCount** function iterates over a list and evaluates a logical statement for each list iteration.

`listCount`

returns the count of the number of iterations which evaluate to "true."## listSum

The ** listSum** function iterates over a list and a field reference. The function returns the sum of the referenced survey fields.

## listWhich

The ** listWhich** function iterates over a list and a logical statement. Each iteration evaluates the logical statement with a list substitution.

`listWhich`

returns either the first iteration that evaluates to true, or optionally all iterations that evaluate to true. The values returned can be list id, text, or other related data.## listUnique

The ** listUnique** function iterates over a list and a field reference, checking whether each row-question in a table contains a distinct response. This function is particularly helpful for verifying that text inputs and

*autoothers*do not contain identical responses.

## listMax

The ** listMax** function iterates over a list and evaluates a statement for each list iteration.

`listMax`

returns the result of the statement which evaluated to the largest value.## listMin

The ** listMin** function iterates over a list and evaluates a statement for each list iteration.

`listMin`

returns the result of the statement which evaluated to the smallest value.## listVar

The ** listVar** function iterates over a list and evaluates a statement for each list iteration.

`listVar`

returns the variance of all evaluated statements.## listProduct

The ** listProduct** function iterates over a list and evaluates a statement for each list iteration.

`listProduct`

returns the product of the evaluated statements.
## Comments

0 comments

Please sign in to leave a comment.