Decision table rules

Important

Feature availability is part of a phased rollout. Your organization may not see this functionality yet. It will become available when your environment is included in the rollout.

In component personalization, each row in a component’s decision table is a rule that uses your selected inputs to determine whether a visitor matches.

For each input in a rule, you define:

  • Comparator - the operator used to evaluate an input, such as Is equal to or Is in. Available comparators depend on the selected input.
  • Value - the specific value the input is compared against, such as a country, device type, or condition result.

For example, if you use Country and Device type as inputs, your rules might look like this:

  • Rule 1
    • Country is equal to DE
    • Device type is in Desktop, Mobile
  • Rule 2
    • Country is in US, CA
    • Device type is not equal to Tablet.

Each rule appears as a separate row in the decision table and creates a corresponding component variant that you can customize in Page builder.

Each rule appears as a separate row in the decision table and creates a corresponding component variant.

When personalization is live and a visitor loads the page:

  • Rules are evaluated from top to bottom.
  • The first matching rule is applied.
  • The corresponding component variant is displayed.
  • If no rules match, the original component is displayed.

Because only the first matching rule is applied, place more specific rules above more general ones.

Available decision table comparators

The following comparators are available for use when configuring personalization rules in decision tables:

ComparatorDescriptionExample use case
ContainsValue includes the specified text.Email contains @company.com
Does not containValue excludes the specified text.Referrer does not contain linkedin.com
Does not end withValue does not end with the specified text.Email does not end with .org
Does not start withValue does not start with the specified text.Referrer does not start with internal-
Ends withValue ends with the specified text.Email ends with .com
Greater thanValue is greater than the specified number.Number of page views is greater than 10
Is afterDate value occurs after the specified date.Date of birth is after 2000-01-01
Is beforeDate value occurs before the specified date.Date of birth is before 2000-01-01
Is betweenDate value falls within the specified range.Date of birth is between 01-01-1990 and 12-31-2000
Is emptyValue is empty.Email is empty
Is falseBoolean value is falseGuest birthday is false
Is equal toValue exactly matches a single value.City equals Copenhagen
Is inValue matches any value in a list.Device type is in Mobile, Tablet
Is in the nextDate value falls within the next number of days, weeks, months, or years.Date of birth is in the next 30 days
Is in the pastDate value falls within the previous number of days, weeks, months, or years.Date of birth is in the past 7 days
Is in the yearDate value falls within the specified year.Date of birth is in the year 1995
Is not equal toValue does not match the specified value.Country is not equal to US
Is not inValue does not match any value in a list.Country is not in US, UK
Is not in betweenDate value falls outside the specified range.Date of birth is not in between 01-01-1990 and 12-31-2000
Is not in the nextDate value does not fall within the next number of days, weeks, months, or years.Date of birth is not in the next 30 days
Is not in the pastDate value does not fall within the next number of days, weeks, months, or years.Date of birth is not in the past 7 days
Is not in the yearDate value does not fall within the specified year.Date of birth is not in the year 1995
Is not nullValue exists and is not null.Email is not null
Is not on the dayDate value does not occur on the specified day.Date of birth is not on 01-01-2001
Is now minusDate value is before the current date by the specified number of days, weeks, months, or years.Date of birth is now minus 30 years
Is now plusDate value is after the current date by the specified number of days, weeks, months, or years.Date of birth is now plus 30 years
Is nullValue is null.Email is null
Is on the dayDate value occurs on the specified day.Date of birth is on 01-01-2001
Is trueBoolean value is trueGuest birthday is true
Starts withValue starts with the specified text.Referrer starts with https://
If you have suggestions for improving this article, let us know!