Using Conditional Rendering(Hubl) in Email Template For Single Send API



I was trying to use hubl conditional rendering (if) as part of an html email template for single send API.

But it seems that when sending the email, the condition ignores the value of the variable.
Someone knows if it is possible and how?




I am following up on this with the same issue. We are trying to build an email payment receipt and with it a field for promotional discount. I am trying to use Hubl to place an if statement to hide or show that portion of the email. It doesn’t seem to pick up the value of the variable.

Please advise. Thanks.