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
Suma G 7Suma G 7 

Issue with conditional if else statement in custom email template

I have requirement like, i need to populate the part of email body based on some condition(dynamic email body). i am triggering email from workflow-> email alert. 
i choose custom template (without letterhead) to work with this requirement. i stuck in conditional based rendering of email body.
i am trying like below:
{!IF(Opportunity.xxx__c,IF(Opportunity.yyy__c,"both r true","isach false"),"ach apr is false")}
xxx__c & yyy__c both are boolean fields on opportunity object.

any suggestions to achive this requirement.
Thank you in advance!