Dynamic Statements: The Builder

Overview

Dynamic statements are now included in the Builder's composition tools. You can now add conditional statements to content, without having to write your own "if" statements. Dynamic statements allow emails to either show or hide content according a condition you have set up beforehand.


Accessing the Builder

You can access the Builder in the first step of email composition.  Click Messages > Create Email to navigate to the email wizard.

CreateEmail_v2

 

Click the Builder icon to begin.

You can learn more about the Builder in the Email Builder tutorial.

Dynamic Statements

Once you have selected your template, you will be able to refine the email's appearance. To add a dynamic statement, drag and drop the layout placeholder (one column, two column, three column) into your email. You can add more columns to an existing template as well.

Once you have added the layout placeholder, hover over the placeholder (not the content) to reveal four options. The furthest to the left of the placeholder is to delete the placeholder, the three on the far right are for adding a dynamic statement, duplicating the column, or moving the column. Click Add dynamic statement.

Conditional_Statement_Select

This brings up the Dynamic Content screen, where you set the dynamic statements of the selected column. There are four fields to fill in to set the condition, and more conditions can be added to the same column by clicking the "+" button on the right.

 

Category

Select a category to define what fields you want to use for your dynamic statement. The default categories are:

  • Contact Fields
  • Custom Fields
  • List Fields
  • User Fields
  • Customer Fields
  • Enterprise Fields

Field

The field values will populate according to the category selected.

Condition

The condition is the measure of the first field compared to a value (e.g. whether or not the field is equal to the value of the condition).

Conditional_Statement_Condition

Value

You fill in the text or number that your condition must be measured against. This is directly related to the first field. For example, if you have selected the contact's title for the dynamic statement, the value will be the options available in the title field: Mr, Ms, Mrs, etc.

Using Dynamic Statements

Let's look at a shoe store sending a message to alert its customers of an upcoming sale. The condition set will be as follows: when the email is sent to a male, mens shoes will be displayed as the header image, and if the email is sent to a female, womens shoes will be displayed.

Shoe_Example

 

Two content blocks have been created, each in their own single-column layout section. The two images have been uploaded using the Builder as normal, replacing the image placeholders. Now for the first image, which is for ladies, we will set the dynamic statement.

Select Add dynamic statement from the fork icon in the menu on the top right of the column.

Shoe_add personalisation

 

In the Dynamic Content screen we will set the following:

Category: Contact Fields

Field: Gender

Condition: Equals

Value: Female

This will check the gender of the recipient from your email list. If the recipient is female, the subscriber will be shown this image. Remember that your contact list must already have gender as a field and the contacts' gender must be captured, otherwise this won't work.

We will set the second image the same way, but for the male gender:

Category: Contact Fields

Field: Gender

Condition: Equals

Value: Male

Once these two conditions are set, you can complete and send your email as usual. Now your contacts will receive the email with either one of those shoe images, depending on the gender set.

You will need some sort of fallback text or content block, for any contacts who do not fit the condition, or have not filled in the specific custom field.

Dynamic Statement Uses

Dynamic statements are powerful tools that will help speed up email building, and add variety to your content. Rather than creating two separate emails for mens or womens shoes, only one email is created that caters for all. Dynamic statements are diverse, allowing for creative content building in a single email.

Translate »