Articles on: Email

Email Variables, spintax, if statements, conditional statements

Email Variables, Spintax, If Statements, and Conditional Statements in Super Send

Super Send offers powerful features to customize your emails using message variables, Liquid syntax, and Spintax. This guide provides an overview of these functionalities.



Variables



Message variables allow you to personalize your emails by inserting dynamic content. You can use variables in your messages like {{variable}} or {{first_name}}. The list of available message variables is accessible when editing an email; click on Message Variables to view the options.

For more detailed information, refer to the Liquid Syntax: Liquid syntax / variable replacement / variable defaults



Conditional Statements



Conditional statements enable you to tailor your email content based on specific conditions. Using Liquid syntax, you can create conditional logic within your emails.

Example:

{% if language == "english" %}
  Hello
{% elsif language == "spanish" %}
  ¡Hola!
{% elsif language == "french" %}
  Bonjour!
{% endif %}


Another example:

{% if customer.name == "Kevin" %}
  Hey Kevin!
{% elsif customer.name == "Anonymous" %}
  Hey Anonymous!
{% else %}
  Hi Stranger!
{% endif %}


For an in-depth guide, read this article https://blog.supersend.io/using-custom-variables-and-if-statements/



Spintax



Spintax allows you to introduce variations into your emails, enhancing deliverability while maintaining control over the content.

Example:

{Option 1|Option 2|Option 3}


This syntax will randomly select one of the options each time the email is sent.

Learn more about Spintax in the Spintax: How to Vary Your Cold Emails to Increase Deliverability article.

Liquid Syntax Default Variables



You can set default values for variables using Liquid syntax to ensure your emails display correctly even if certain data is missing.

Example:

{{ first_name | default: "there" }}


In this case, if first_name is not available, it will default to "there".

For more details, see the Liquid Syntax: Variable Replacement & Variable Defaults article.

Updated on: 21/01/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!