Hello everyone!
I build a module for single email (doc here) and I am trying to understand why the email is returning as FALSE and that the correct one should come as TRUE.
Code in module (type email):
{% if custom.payment_method|upper == "BOLETO" %}
... a div with elements here ...
{% endif %}
Test debugg:
-- debugg: {{ custom.payment_method }} <br>
-- debugg: {{ custom.payment_method == "boleto" }} <br>
-- debugg: {{ custom.payment_method|upper == "BOLETO" }} <br>
POST (Success):
{
"emailId": "123123",
"message": {
"to": "adriano.silveira@azos.com.br"
},
"customProperties": [
{
"name": "payment_method",
"value": "boleto"
}
]
}
Result in email:
A DIV inside conditional not display
Test debugg:
-- debugg: boleto
-- debugg: false
-- debugg: false
What is wrong with the code and why custom.payment_method == “boleto” return as false?