The "Display conditions" parameter allows you to dynamically change the content of the email/template displayed to recipients after mailing, depending on whether the specified condition is met or not.


Please be advised that different email services use their own conditional comments for displaying personalized content based on a condition. Our editor just allows adding merge-tags and conditional comments into the body of an email template. In the process of sending an email service that you use for sending should find and replace the conditional comments in the code with real content.

That's why, first of all you should contact your ESP to clarify the conditions that you will need to pass into email template.

If for some reason, the email service doesn't handle the conditional comments in the process of sending, you can try to request more information from their support and specify there if the right format for the comments has been used.


How to add the conditions into my email template?

Firstly, to activate the "Conditions" tab go to the project settings and enable the additional function "Content display conditions".

When the " Content display conditions" option is activated, let's apply a sample to the content part.

I prepared an email template with two stripes of different products.

In the first stripe - we have added a product that will be displayed to men when sending.

In the second stripe - we have added a product that will be displayed to women when sending.

So how to write a rule for our stripes?

  • Select the stripe with male content and activate the "Apply Display Conditions" control;

Please note, conditions can be applied to a container, structure or stripe.

  • fill in the following fields:

    • Name (you can give any name of your condition);

    • Description (it's an optional parameter, you can leave notes for yourself);

    • Code before module and Code after module (pass the condition code responsible for displaying this content part for male you specified with your ESP)

In our case, I added this conditions example:

<!--if($data.get('FOR.MALE.GENDER')=='f')-->

<!--endif-->

  • done, we applied the conditions for our male stripe;

  • let's do the same with the stripe of female content;

    I added this conditions example:

    <!--if($data.get('FOR.FEMALE.GENDER')=='f')-->

    <!--endif-->

How to check the condition rules?

In the preview mode, you will be able to see a new control that will allow you to see the email in compliance with the display conditions. Please, be aware that the final check of the display conditions is possible only from a real mail client in the client's mail account.

  • go to the "Preview" mode;

  • click on the "Display Condition" button and switch between different rules to check the correctness


How to create a prepared list of Conditions to save my time for routing operations?

Go back to the project settings and click the "Create condition" button and set up the conditions for the email template that will be applied in your email service provider during sending of the emails.

In the "Create condition" tab, fill in the following list of parameters that need to be filled in:

After all the variables have been added and the condition is saved, open your email template, select the place where the conditions should be applied, and just select a value from the pop-up list.

Let's say you would like to add different information to display in the email for other categories. To do this, create a New condition in the project settings.

Please be advised, you will see the condition codes into HTML only after export.

If you have any questions, please email us at support@stripo.email or ask in chat.

Did this answer your question?