An '#if' is a conditional clause that caters for 'if-then scenarios'. An '#if' must be closed with an `#endif'.

Examples

  • {{#if has.referral.arrangement}} The referral fee is £50.00. {{#endif}}
  • {{#if referral.amount = '50.00'}} The referral fee is £50.00. {{#endif}}

Else

An `#else' must be contained within an '#if' and '#endif' and is used for 'if-then-else scenarios'.

{{#if has.introducer.fee}} The referral fee is £50.00. {{#else}} There is no referral fee. {{#endif}}