Create conditions to show or hide rows in email messages using subscriber attributes

You can increase the performance of your email program by creating display conditions in your emails. Display conditions control whether rows in an email are shown or hidden based on a given subscriber’s attributes.

For example, let’s say your brand has a loyalty program. You can use custom attributes to track whether subscribers are enrolled in the loyalty program and how many loyalty points they’ve earned. You can use display conditions to show a row in your emails to loyalty program members that displays the number of points they’ve earned. This row is hidden from non-members. You can also use display conditions to show a row that introduces your loyalty program to subscribers who aren’t yet members.

Create email row display conditions

  1. Create or edit an email message.
  2. Select the row you want to add display conditions to.
  3. In the ROWS tab, scroll down to DYNAMIC CONTENT and click Manage condition.
    The highlighted ‘Dynamic content’ section in the ‘ROWS’ panel in the Attentive email editor.
  4. On the Display condition page, enter a Condition name and Description (optional).
  5. Build your condition.
    • In the first field, select a variable to base your condition on.
    • In the second field, choose an operator, such as is or is not.
    • In the third field, select or enter the value that the condition should evaluate.

      For example, let’s say you have a custom attribute called Loyalty Status that indicates whether a subscriber is a member of your loyalty program. A condition that shows a row in your email only to loyalty program members would look like the following:

      Show row if {{subscriber.custom['Loyalty Status']}} is True.

      The ‘Display condition’ page with a condition named ‘Loyalty member’ where the condition is built as follows: ‘Show row if {{subscriber.custom[‘Loyalty Status’]}} is true.
  6. (Optional) Click Or or And to build additional conditions.
  7. Click Save.

A row in the email editor with a display condition configured so that the row only shows if a subscriber’s ‘loyalty status’ custom attribute is ‘true’.

Your new condition appears in the DYNAMIC CONTENT section of the ROWS tab. Click Manage condition to delete or edit the condition or to add more conditions.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful