Loading
Market to Your Customers with Account Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Use HML Conditional Merge Fields

          Use HML Conditional Merge Fields

          You can use Handlebars merge fields to create simple conditional logic statements in your Account Engagement content. These statements render default content when prospect records don’t contain a value for certain fields.

          Required Editions

          Available in: All Account Engagement Editions

          Keep these considerations in mind when you work with conditional content statements:

          • Conditional statements create one-to-one replacements for empty field values, but they don’t evaluate fields for the type of data they contain. For example, you display certain content based on whether a prospect has data for their City field, but not based on whether their city is San Francisco.
          • If you specified a default value for a field and created a conditional logic statement, the default value populates instead of the statement.
          • You can nest up to 3 conditional logic statements.

          Format your merge fields like this to create your conditional content statements:

          {{#if field.name}} {{else}} {{/if}}

          For merge fields that contain links, place each link on a separate line like this:

          {{#if Merge.Field}}
          https://www.example.com{{Merge.Field}}
          {{else}}
          https://www.example.com/signup
          {{/if}}

          This table shows the syntax and an example of a conditional statement.

          Syntax Example

          {{#if Merge.Field}}

          Show this text when a prospect record includes a value for the specified field.

          {{else}}

          Show this text if the field is blank.

          {{/if}}

          {{#if Recipient.FirstName}}

          Hi {{Recipient.FirstName}},

          {{else}}

          Hello!

          {{/if}}

           
          Loading
          Salesforce Help | Article