If Greater Than

if_gt

This is a very simple and powerful function. It means that you can show content only if a value from the back office is greater than a number.

For example the following means that the content about a next payment only shows if the next payment is greater than zero:

{{if_gt NextPayment.Amount '0' }}

Your Next Payment

Is for:

${NextPayment.Amount}

It is due on: ${NextPayment.Date}

{{/if_gt}}

This could be used to show a specific warning if something was too high e.g.

{{if_gt RentArrears.Amount ‘1000.00' }}

You need to make a payment as your Rent Arrears are now greater than £1000.00!

{{/if_gt}}

Last updated

Was this helpful?