Search code examples
salesforceemail-templates

How to use an if-statement in SalesForce E-Mail Template


I'm trying to add a if-Statement to my E-Mailtemplate (Type: HTML). I used the following code:

{!if(Lead.LastName="", "1", "2")}

My Output is just nothing :/

Does anyone know how to do it right?


Solution

  • Got it work now. I just changed the Formating a bit, and now it works. Very strange...