Example #1 - OR conditions only
In this simple example, we are searching for transactions whose:
- Customer is equal to "this" OR
- Product contains "that" OR
- Order ID equals "123"
If any of those 3 conditions is met, the transaction will be selected. Note that the last OR (line #3 above) is not applied since there is no following condition.
Example #2 - AND conditions only
In this simple example, we are searching for transactions whose:
- Customer is equal to "this" AND
- Product contains "that" AND
- Order ID equals "123"
If all 3 conditions are met, the transaction will be selected. Note that the last AND (line #3 above) is not applied since there is no following condition.
Example #3 - Grouped Condition
When using a mix of AND and OR conditions, it becomes necessary to group conditions to clarify things:
To be selected, a transaction must have a customer equal to "this" AND an order ID of "123", but the product can be either "that" or "???".
To create a grouped condition, we shifted product-based conditions to the right using the right-arrow button.
The "AND" at the end of the group (line #3 above) connects to the next condition. Note that the last OR (line #4 above) is not applied since there is no following condition.