function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nandhini S 3Nandhini S 3 

How to add conditional statements in email template

Hi Guys,
I need to add conditional statements in HTML email template. If the case Reason value is closed then decision value should be displayed else nothing should be displayed.
I tried the below statement but it's working only if I use standard field in the condition. (Reason is a picklist field)

{!IF(Case.Reason__c = "Closed", "Decision: " +decision__c, Null)}

 
Rosie RosieRosie Rosie
Select a Template Type. Add Sections to your Email Template. For the Section that you wish to be condition, select the icon. Under the Condition Set heading, select Add Condition Set https://www.expresshr.ltd/