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.

Examples

1.  Filter for Tweets that mention Apple coming from users who describe themselves as evangelists.

2.  Filter for Tweets or Retweets that mention "marketing".

3.  Filter for Tweets that mention "Packard" but do not mention "Hewlett".

4.  Filter for Tweets that do not have geo information.

 

Limits

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"