+ Start a Discussion
sam kristsam krist 

if statement in email

Hi 

I am trying to write an if statement inside html email template but its not working 
below is th code I tried to use, could anyone help on this

<p>
{!IF(ISCHANGED(TargetX_Eventsb__OrgEvent__c.Name)), 
   Name: TargetX_Eventsb__OrgEvent__c.Name,
   ''
}
{!IF(ISCHANGED(TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__Description__c)),
    Description: TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__Description__c,
    ''
}
{!IF(ISCHANGED(TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__Start_Date_Time__c)),
   Start Date: TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__Start_Date_Time__c,
  ''
}
{!IF(ISCHANGED(TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__End_Date_Time__c)),
  End Date: TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__End_Date_Time__c,
  ''
}
{!IF(ISCHANGED(TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__Number_Cancelled__c)),
  Cancelled: TargetX_Eventsb__OrgEvent__c.TargetX_Eventsb__Number_Cancelled__c,
  ''
}
</p>
Sagar_SFDCSagar_SFDC
Hi Sam,

Please look into this URL . Might be it will help you.
https://success.salesforce.com/ideaView?id=08730000000BrdX

Thanks,
Sagar Sindhi