Example 2 Displaying nested conditional content

This example illustrates how a script can create nested conditions and data tables to address several different audiences and provide very different content based on the characteristics of the message recipient.

This script also illustrates several attributes for the <@list> tag, the deliverDimensions test for dimension tables, two conditional statements, and how to specify pages on a corporate web site in a data table.

This example presents a scenario where your company has three classes of customers and tracks new customers. It is running a rewards program over several months to expand purchases in general, and certain new products in particular.

In this example, customers fall into 4 categories.

  • Platinum members. These are premium customers who qualify for platinum status by purchasing more than $5000 in the past 12 months and by paying an additional fee.
  • Gold members. These are preferred customer who qualify for gold status by purchasing between $1000 to $4999 in the past 12 months and by paying an additional fee.
  • Silver members. This is the base level account type. Silver members purchase less than $1000 per year.
  • New members. Customers that have joined within the past 30 days. They might be Silver, Gold, or Platinum members.

The company is running a rewards promotion over several months. You are planning an email campaign for the entire customer list to indicate to active customers the rewards they have earned to date and to encourage additional purchases. The mailing also targets inactive customers to encourage them to begin purchasing again. The mailing sets a third objective to target new customers with additional rewards to encourage them to buy more now.