General structure for scripts

Advanced scripts for email must adhere to a specific structure and syntax.

Open and close each script with the <UAEscript> tag.

Place the contents of the script between the <scriptBody> tags. Anything that you place outside of these tags is not executed as a script.

The following example illustrates a simple advanced script.

<UAEscript>

<declarePF names="personalization field 1,personalization field 2, 
personalization field 3, …"/>

<!--scriptBody>

Create a script to build data tables, a series of conditional statements, 
or a combination of both. 
Format the script output using standard HTML elements. 
Include additional valid HTML text and links as required.

</scriptBody-->

Descriptive note (optional, but recommended)

</UAEscript>

The <scriptBody> tags resemble an HTML comment tag. When you display a page that contains an advanced script in a browser, the script code does not display. Only the optional comment that follows the closing <scriptBody> tag displays in the browser. When you execute a mailing, the script runs and displays the required output in the email.

Use the available tags and operators to construct the script. You can add standard HTML elements to the script to include text or links in the script output.

Scripting in Deliver does not support adding zones or links to the Content Library to the script.