Back to List
Placeholder | Replace With |
dialog | A dialog name. |
You can find out how many sets of answers a user provides for a repeated dialog. A repeated dialog is any dialog used in a repeat instruction. This expression produces a number, based on each answered dialog.
The following example determines if there is more than one fiduciary. If there is, certain prefixes and plural abbreviations are added to the fiduciary title so the paragraph is structured correctly.
I appoint [repeat:FiduciaryInformation;format="a, b, and c":[FiduciaryName;te;format="LIKE THIS"]] as [if:count( FiduciaryInformation ) > 1:Co-[FiduciaryTitle;te]s/else:[FiduciaryTitle;te]].
This expression uses the count instruction to determine if FiduciaryInformation is answered more than once. If it is, the Co- prefix is inserted before FiduciaryTitle, and the plural s is inserted at the end of the variable. For example, in the assembled document, the answer may be inserted as Co-Executors or Co-Personal Representatives.
The difference between count and counter is that count counts the number of repetitions in a list, while counter gives you the number of the current repetition.
Back to List