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>

Rookie Asked on March 17, 2021 in Other.

what’s the type of transaction here?

on March 21, 2021.
Add Comment
1 Answer(s)

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
Rookie Answered on March 18, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor