• sam krist
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
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>