Go to Stripo

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. 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 an 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 to my email template?

Firstly, to activate the "Conditions" tab go to the "Projects" 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 structures of different products.

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

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

So how to write a rule for our structures?

  • Select the structure with female content and activate the "Apply Display Conditions" control;

Important to 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 the female you specified with your ESP)

In our case, I added this conditions' example:

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

  • Done, we applied the conditions for our female structure;

  • Let's do the same with the structure of male content;

I added this conditions' example:

<!--if($data.get('FOR.MALE.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 Conditions" 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, click the "Create condition" button, and set up the conditions for the email template that will be applied to 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 that you will only see the condition codes in the HTML only after export.


Thank you for taking the time to read our articles. We hope you will find this information helpful.


If you have any additional questions, please email us at support@stripo.email.

We would be glad to talk with you.


Did this answer your question?