IF conditions not working in HTML + HubL templates
Hello everyone,
I am working on Custom Email Templates using HTML & HubL template. I have used IF conditions within the email template, but it is not working for "line_item.name" deal property.
I have added the IF condition as follows, but it never satisfies -
{% if line_item.name == 'SDC warranty' %}
//code
{% endif %}
Can anyone please let me know if I am missing anything here ?