Back

This article lists the operators available when building conditions for audiences and rules. Some operators only apply to certain attribute types, which is indicated in the "Applies to" column.

The string condition "matches regular expression (Regex)" is available as an Experiment.

Condition Description Applies to
array contains

An item in the array is an exact match to the value specified.

True
["iOS", "Android"] array contains "Android"

False
["Women's Clothing", "Shoes"] array contains "Women"

  • Array
array does not contain

No item in the array is an exact match to the value specified.

True
["iOS", "Android"] array does not contain "Samsung"

False
["Women's Clothing", "Shoes"] array does not contain "Shoes"

  • Array
contains

Attribute value includes the value you specify.

True
"user@tealium.com" contains "tealium"
["iOS", "Android"] array contains "Android"

False
["Women's Clothing", "Shoes"] array contains "Women"

  • Array
  • String
  • Tally
  • Visitor ID

contains
(ignore case)

Attribute value includes the value you specify.
  • String
  • Visitor ID
does not contain Attribute value excludes the value you specify.
  • Array
  • String
  • Visitor ID
  • Tally

does not contain
(ignore case)

Attribute value excludes the value you specify.
  • Array
  • String
  • Visitor ID
  • Tally
contains partial string

Attribute value partially matches the value you specify.

True
["Women's Clothing", "Shoes"] array contains "Women"

False
["Women's Clothing", "Shoes"] array contains "Tops"

  • Array
  • Tally
  • Visitor ID

contains partial string
(ignore case)

Attribute value partially matches the value you specify, regardless of case.
  • Array
  • Tally
  • Visitor ID
equals

Attribute value matches the whole value you specify

True
"purchase" equals "purchase"
0 equals 0

False
"Luggage" equals "luggage"
0 equals 1

  • Number
  • String
  • Visitor ID

equals

(ignore case)

Attribute value matches the whole value you specify.
  • String
  • Visitor ID
does not equal Attribute value does not match the whole value you specify.
  • Number
  • String
  • Visitor ID

does not equal

(ignore case)

Attribute value does not match the whole value you specify.
  • String
  • Visitor ID
less than Attribute value is less than the value you specify.
  • Number
  • Date
less than or equal to Attribute value is either less than or equal to the value you specify.
  • Number
  • Date
greater than Attribute value exceeds the value you specify.
  • Number
  • Date
greater than or equal to Attribute value either exceeds or equals the value you specify.
  • Number
  • Date
is assigned

Attribute exists, but may or may not have a value.

True

"Shirts" is assigned

["iOS", "Android"] is assigned

[] is assigned

"" is assigned

0 is assigned

Is VIP is assigned

  • Number
  • Timeline
  • List
  • Badge
  • String
  • Tally
  • Visitor ID
  • Date
is not assigned Attribute does not exist.
  • Number
  • Timeline
  • List
  • Badge
  • String
  • Tally
  • Date
  • Visitor ID
is empty

Tealium iQ variable does not contain any value ie. value is undefined, null, or blank string.

True
{ page_name : undefined }
{ page_name : null }
{ page_name : "" }
{ product_id : [] }

  • Imported from iQ
is not empty

Tealium iQ variable contains any value ie. value is a string containing one or more characters, a number with a value (including 0), or an array with one or more items.

True
{ page_name : "Title" }
{ page_num : 1 }
{ product_id : ["WidgetXYZ"] }

  • Imported from iQ
is true Boolean value equals "true".
  • Boolean
is false Boolean value equals "false".
  • Boolean
occurred less than Date value is not yet past the number of minutes/hours/days/weeks/months you specify.
  • Date
occurred more than

Date value is past the number of minutes/hours/days/weeks/months you specify.

  • Date
is started Funnel is initiated for the visitor/visit.
  • Funnel
is completed Funnel has ended for the visitor/visit.
  • Funnel
step completed Step is successfully completed for the visitor/visit.
  • Funnel
step not completed Step is not completed for the visitor/visit.
  • Funnel
is executed Tag has successfully fired on the page. Tags in your Tealium iQ profile

Extended Rule Condition for Tally

When using the contains operator, you can create a rule condition to check if the key for a tally contains a specific value.

Only available using the contains operator.

Use the following steps to include a Tally key and its value in a rule:

  1. Add a new Rule condition or select an existing rule to edit.
  2. Under Conditions, select your Tally from the first drop-down list.
  3. Select the contains operator in the next drop-down list.
  4. In the next drop-down list, select Custom Value.
  5. Enter the key that you expect in the Tally.

    steps 1_3.png

  6. Click the plus (+) button to the right and select the operator with which to evaluate the key you specified.
  7. Specify the value you want to evaluate against the key.
    You can use an attribute or simply type in a custom value for this purpose.
  8. Click Finish.
    You have successfully created the rule.

    steps 3_4.png

Provides a built-in date picker for selecting a custom MM/DD/YY.

date picker.png