if statement in emails

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

Hi, @stavros_gr :waving_hand: One question, have you tried adding your module to an email and then testing it using a contact-specific test or preview? If so, please let us know, and we’ll try adding a few community members to the conversation.

Best,

Jaycee