Skip to main content

Notifications FAQs

Q. Can I create different emails based on variables present in the Loop emails?

Yes. You can use conditional logic in email templates to show different content based on the value of a variable.

For example, you can use if, else if, and else conditions to create different email content based on {{subscription_total_price}}:

For example:

{{#if (gt subscription_total_price 100)}}

Your subscription total is more than $100.

{{else if (lt subscription_total_price 50)}}

Your subscription total is less than $50.

{{else}}

Your subscription total is between $50 and $100.

{{/if}}

In this example:

  • If subscription_total_price is greater than 100, the first message is shown.

  • If subscription_total_price is less than 50, the second message is shown.

  • For all other values, the message in the else condition is shown.

You can use this approach to customize your email content based on the value of supported variables.

Did this answer your question?