Adding conditional text
The email editor also comes with predefined templates for conditional text blocks, which you can apply to any text content. To add conditional text, proceed as follows:
- Place your cursor in the text block where you want to add the conditional text.
- Click the Conditional text icon.
You can choose from the following conditional templates:
Decide by gender
With this option, you can display text targeted at customers based on their gender. You can also personalize this conditional.
Decide by email address
With this option, you can define conditional text based on an exact or a partial match for the contact's email address. You can also personalize this conditional.
Decide by country
With this option, you can define conditional text based on the recipient's country. You can also personalize this conditional.
The following options are available:
- You can insert the ID of the country as stated in the list of all the available values for the single-choice system fields. The IDs for these fields can also be fetched via the Listing available field choices API call. You can define multiple IDs separated by commas.
- You can enter the name of the country. In this case, please check whether the countries are spelled correctly because the values are case sensitive. You can enter multiple countries separated by commas.
You can define as many countries as you like, as long as, they are included as values or IDs in the Country field of the Emarsys database.
Decide by contact field
With this option, you can select from any database field and define conditional text for one single value of that field.