Logical Operators

The logical operators in CSDL are:

  • AND
  • OR
  • NOT

A AND B succeeds if both A and B succeed.

A OR B succeeds if at least one of them succeed.

For completeness, we include the truth tables.


1.  Filter for content that mentions Apple and includes the word "evangelist" in the title:

interaction.content contains "apple"
AND interaction.title contains "evangelist"

2.  Filter for content that mentions "Packard" but does not mention "Hewlett".

interaction.content contains "Packard" AND NOT
interaction.content contains "Hewlett"

3.  Filter for a 2-percent sample of interactions that refer to coffee or tea.

interaction.content contains_any "coffee, tea" and
interaction.sample < 2


A maximum of 1000 operators may be used in a filter. You will receive the following error message if your filter contains more than this number.

An error occurred: "maximum recursion depth of 1000 has been reached"