Email and SMS message templates

To use conditional substitution codes in message templates you create conditional blocks. Each block contains the response to display if the true or false condition is met.

The syntax of a conditional block:

[substitutioncode]
output-if-condition-met
[/substitutioncode]
[!substitutioncode]
output-if-condition-not-met
[/!substitutioncode]

The first section of the block contains the response to display if the condition of the substitution code is true. The second section of the block contains the response to display if the condition of the substitution code is false.

The following is an example using invoice substitution codes.
Amount Due: {currencyCode} {accountBalanceIncludingPending}
[hasPendingPayment]
Payment Scheduled: {pendingPaymentDate}
[/hasPendingPayment]
[!hasPendingPayment]
Date Due: {dueDate}
[/!hasPendingPayment]
The displayed response when the condition is true:

Amount Due: $ 110.50
Payment Scheduled: 15/11/2015

The displayed response when the condition is false:

Amount Due: $ 110.50
Date Due: 20/11/2015