Operators

Relational and containment operators

They are used to create simple conditions.

  Operator Description Symbol
Relational Equals Is equal in value or amount to what is on the right of the sign. =
Does not equal Is not equal in value or amount to what is on the right of the sign.
Is greater than Is bigger in value or amount to what is on the right of the sign. >
Is greater than or equal to Is bigger or equal in value or amount to what is on the right of the sign.
Is less than Is smaller in value or amount to what is on the right of the sign. <
Is less than or equal to Is smaller or equal in value or amount to what is on the right of the sign.
Containment Contains Checks whether a sequence contains a given element.
  • For example, the filter Subject, Contains, SPAM VIAGRA will return all messages of which headers contain SPAM and VIAGRA.
abc
Does not contain Checks whether a sequence does not contains a given element. acb
Is any of Checks whether a sequence any of the given elements. a, b, c
Begins with Checks whether a sequence begins with a given element. [a]b
Ends with Checks whether a sequence ends with a given element. b[c]

Logical operators

They are used to combine simple conditions into more complex expressions.

Operator Description
And Both conditions must be true for the complex expression to be true.
Or If either condition is true, the complex expression is true.