Example 1 Displaying a data table in a document

This example provides a sample script that could be used to generate and display a data table in an email.

In this example, the data table displays a simple list of text values and displays a comment if the recipient satisfies a specific criteria contained in the script.

This example presents a case where you are sending an email to a list of recipients that have engaged in some type of transaction with your company. Some of those transactions involve purchases. The flowchart used to create the recipient list selects only individuals that have made any type of transaction.

The company is running a promotion that awards a varying number of promotional bonus points for each purchase. The calculation of the number of points occurs outside of the script. You are sending a monthly email to inform the email recipients of the points they have earned and how they earned them.