COUNT( MULT_CHOICE_VAR )

Placeholder Tooltip Replace With
MULT_CHOICE_VAR m: Multiple Choice Variable A Multiple Choice variable with the Select option set to All That Apply

Returns a Number value

This expression counts how many options a user chooses when answering a Multiple Choice variable. The result it produces is a number.

For example, suppose the user wants to generate a list of cities in which an author plans to make appearances. There might be one—or many—depending on the schedule. HotDocs can merge the correct term—city or cities—into the document once it knows how many cities were selected from the Multiple Choice variable:

IF COUNT( Publicity Tour City ) = 1

"city"

ELSE IF COUNT( Publicity Tour City ) > 1

"cities"

END IF