Conditional rules
Conditional rules are a set of conditional expressions that can be evaluated as true or false. You can use these rules to determine which content variant to display in an email message based on various criteria, such as profile attributes or contextual events.
Conditional rules are stored in the conditions library, where they are available for reuse across journey content for your organization.
Create a conditional rule
You can access the conditional rule builder from the email designer when you are selecting a condition for a component variant.
-
In the Select condition dialog, click Create new and choose the condition type:
- Person condition - Choose this type to build the conditional rule using person attributes and contextual events.
- Account condition - Choose this type to build the conditional rule using account attributes.
-
Build the conditional rule according to your needs.
For each attribute or event that you want to include in the rule, drag and drop the item onto the rule canvas. Expand the filter and complete the expression.
If you include more than one filter, set the Filter logic:
- Apply all filters - The rule evaluates as true if all the filters are true.
- Apply any filters - The rule evaluates as true if any of the filters is true.
-
On the right, enter the Name and a Description (optional) for the rule.
Use a meaningful name and useful description to help others in your organization so that they can reuse it instead of creating another duplicate condition.
-
When your conditional rule is complete, click Save.
The conditional rule is saved to the library and you can select it for the current variant. It is also included in the library for use by any other dynamic content variants across account journeys.