Updated: 2022-02-18

Use the count(...) function to count items in templates.

For example, to count the number of dependants, use:


Add this function to a conditionn to test whether there are any dependants (either full returns or just Dep worksheets) in the file:

{{# (count(CurrentClient.Dependant) > 0) }}

Show this text if there are dependants in a file.

{{/ (count(CurrentClient.Dependant) > 0) }}