How to use conditionals inside campaign email?

May 2, 2020
Nezam Uddin

Probaho supports using Twig tags within email body. You can write the following in your email:

{% if FNAME %}
Dear [FNAME],
{% else %}
Dear visitor,
{% endif %}

If your list has email recipient's First Name (if you assigned FNAME with First Name), then it will render the First name. In case of not having the data, it will use "Dear visitor".

Here is another example:

{% if GENDER == 'male' %}
    <a href="">Link for M </a>
{% elseif GENDER == 'female' %}
    <a href="">Link for W </a>
{% endif %}

You can see the Twig documentation to learn about more use cases.

Leave a Reply

Your email address will not be published. Required fields are marked *