Logical operators for personalization rules

The following examples list the logical operators available for use in simple personalization rules.

Simple personalization rules support using the logical operators AND and OR to combine conditional expressions and groups of expressions. Creating groups of expressions can provide more precise control over conditional content.

Content displays when this condition is satisfied. Operator Example (as seen in text versions)

Evaluate multiple conditions.

Both expressions must be true to allow content to display.

and

&&

creditLine = 10000 && region = "south"

Content appears only to recipients in the south region with credit approval for $10,000

Evaluate multiple conditions.

Either expression can be true to allow content to display.

or

||

age > 35 or accountBalance > 500000

The content displays if the email recipient is over 35 years old or has more than $50,000 on account.

For example, if the following rule is applied to a text block, the text appears to all account holders with balances above $25000, regardless of their age. Deliver evaluates rules from right to left.

<- accountStatus -> = "current" and <- age -> > 50 or <- accountBalance -> > 25000

When it evaluates a rule, Deliver assigns greater importance to the OR operator than it does to the AND operator. In this example, despite the fact that the AND operator appears first, the OR operator takes precedence.