Hello,
Im trying to achieve something very simple, but it all depends on the value of the custom property called kyc_verified which holds either a “Yes” or “No”
{% set kyc = contact.kyc_verified|trim %}
{% set yes = “Yes”|trim %}
Dear {% if kyc == yes %} {{ contact.firstname }} {% else %} Customer {% endif %}
This should work in the test module i created but its not.
The condition kyc == yes doesnt evaluate to true.
If i replace the kyc with “Yes” it does.
if i use {{ contact.kyc_verified }} outside of the if statement it shows the value but not in the if statement.
Can you please advise what i can do to achieve this?
Regards,
Stav

