If Equal To (v2)
The if_eq function was enhanced recently and there is now a if_eq2 function.
This was created because sometimes the thing we want to compare is a number e.g. 2019.
Whereas if_eq would only work with values that were strings e.g. ‘Disabled’.
For example financial year is a number. So we use #if_eq2:
{{if_eq2 Year '2019'}}
Your balance for the year 2019 is: {{BalanceOutstanding}}
{{/if_eq2}}
The above means an amount outstanding will only be shown if financial year to which it relates is 2019/20.
Last updated
Was this helpful?