Logical Helpers allow you to compare values in the following ways:


  • and - Returns true if ALL arguments are true (not null, false, 0, "", empty)
    • Syntax: {{#if (and value1 value2 value3 ...)}}
    • Example: 
      {{#if (and [Has-Newsletter] [Has-Promotions] [Email-Verified])}}
        <p>You're subscribed to all our communications!</p>
      {{/if}}
  • or - Returns the first value that's true or the fallback if the first value is false 
    • Syntax: {{or value fallback}}
    • Example: 
      Hello {{or [First-Name] "Valued Customer"}}!

For more detailed information on Handlebars, please consult the appropriate article below: