RE: Email Template IF Statement
Trying to use a conditional statement to add text into an email template only if the transaction total is not equal to zero. The below does not produce text for transactions with a total greater than 0. Any suggestions?
<#if transaction.total != ‘0.00’ >
<span style=”font-size:14px;”><span style=”font-family:Arial,Helvetica,sans-serif;”><span style=”color:#c0392b;”><strong>Text Header</strong></span><br />
Text</span></span>
</#if>
Can you try to change:
- <#if transaction.total != ‘0.00’ >
TO
- <#if “${transaction.total }” != “0.00”> try also if it is not working single quotes or 0 instead 0.00
2ps
what’s the type of
transaction
here?