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 if else statements in lightning email template?

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nandhini,

This seems to be limitation from salesforce. Please find the idea (https://ideas.salesforce.com/s/idea/a0B8W00000GdiQDUAZ/allow-conditional-statemements-in-email-template-in-lightning) for the same.
If this solution helps, Please mark it as best answer.

Thanks,
Nandhini S 3Nandhini S 3
Hi Sai Praveen,

Thanks for sharing the info.
I tried with classic HTML email template but it's not working for my use case since I need to display statements based on picklist fields.
Is there any other way to achieve this?
{!IF(object_name.picklist_field= "Specific Value", "Picklist Field 2: " +object_name.piclist_field2, NULL)}