Back to List
Placeholder | Replace With |
mult_choice_var | A Multiple Choice variable with the Select property set to All That Apply |
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. The following computation script demonstrates this:
if count( PublicityTourCity) = 1
"city"
elseIf count(PublicityTourCity) > 1
"cities"
endIf
Back to List