I want to add conditional logic to my text email template.
Here is what I tried:
Destination__c = {!Enquiry__c.Destination__c}
{!IF("{!Enquiry__c.Destination__c}" = "Barcelona", "i am barcelona", "i am not barcelona")}
When I sent a test message, I got the following:
Destination__c = Barcelona
i am not barcelona
I'm aware of formula fields, but I'd rather have the logic in the template. Although, if I need to make a formula field, I'm willing to do so.
{!IF(Enquiry__c.Destination__c == "Barcelona", "i am barcelona", "i am not barcelona")}