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.
You can access the Builder in the first step of email composition. Click Messages > Create Email to navigate to the email wizard.
Click the Builder icon to begin.
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.
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.
Select a category to define what fields you want to use for your dynamic statement. The default categories are:
The field values will populate according to the category selected.
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).
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.
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.
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.
In the Dynamic Content screen we will set the following:
Category: Contact Fields
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.
Category: Contact Fields
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.
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.