Updated: 2024-11-11
Use the count() function to count items in templates.
For example, to count the number of dependants, use:
{{count(CurrentClient.Dependant)}}
Add this function to a condition 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) }}