Use AND, OR, EXCEPT

For queries using several filtering conditions, you need to define links between the conditions. There are three possible links:

  • And lets you combine two filtering conditions,
  • Or lets you offer an alternative,
  • Except lets you define an exception.

Click And (offered by default) and choose from the drop-down list.

  • And: adds a condition and enables overfiltering.

  • Or: adds a condition and enables overfiltering.

    The following example lets you find recipients whose email domain contains “orange.co.uk” OR whose post code starts with “NW”.

  • Except: if you have two filters and the first one does not return a value, this type of link creates an exception.

    In the following example, we want to return recipients whose email domain contains “orange.co.uk” EXCEPT if the recipient’s last name is “Smith”.

This example shows a filter which lets you display: recipients who either speak Spanish, OR are women with mobile numbers, OR recipients without an account number and whose company name starts with the letter “N”.

Prioritize conditions

This section explains how to prioritize conditions thanks to the blue arrows in the toolbar.

  • The arrow pointing to the right lets you add a level of parentheses to the filter.

  • The arrow pointing to the left lets you delete a selected parenthesis level from the filter.

  • The vertical arrows let you move a condition, thereby changing their execution sequence.

This example shows you how to use the arrow to delete a parenthesis level. Start from the following filtering condition: City equal to London OR gender equal to male and mobile not indicated OR account # starts with “95” and company name starts with “A”.

Place your cursor on the Gender (@gender) equal to Male filtering condition and click the Remove a parenthesis level arrow.

The Gender (@gender) equal to Male condition has been taken out of its parenthesis. It has moved to the same level as the “City equal to London” condition. These conditions are linked together (And).