8-7
The Data Filters
8.4.1. Logical AND/OR Conditions
Logical AND/OR conditions can be created by including the AND
operators, or the OR operators in the match parameter deﬁnition. A logical
OR condition can also be created by deﬁning a series of match parameters
using a separate Clue for each parameter.
8.4.1.1. Logical AND Conditions
The AND operators (* and &) link parameters in a manner where two or
more conditions must all be true in order for the record to match the ﬁlter.
Example: Assume "A" represents the ﬁeld for the number dialed, and "B"
represents the extension number. To deﬁne a Data Filter Clue that accepts
records for calls placed to 555-1111 from extension 013, match parameters
would be deﬁned as follows:
A=5551111*B=013 or A=5551111&B=013
This Data Filter Clue would only accept calls placed to 555-1111 AND
placed from extension 013. Calls to 555-1111 from extension 086 would
not be accepted, and calls to 555-2222 from extension 013 would also not
be accepted.
8.4.1.2. Logical OR Conditions
The OR operators (+ and |) link parameters in a manner where any of two
or more conditions must be true in order for the record to match the ﬁlter.
Example: Assume the variable "A" represents the ﬁeld for the number
dialed, and "B" represents the extension number. To deﬁne a Data Filter
Clue that accepts records for calls placed to 555-1111 OR placed from
extension 013, match parameters would be deﬁned as follows:
A=5551111+B=013 or A=5551111|B=013
This Data Filter Clue would accept all calls that are placed to 555-1111 OR
placed from extension 013. Calls to 555-1111 from extension 086 would be
accepted, and calls to 555-2222 from extension 013 would also be accepted.
Another method for creating an OR condition is to deﬁne match parameters
using separate clues. When a series of clues are deﬁned, the record will be
ﬂagged if any of the deﬁned clues are matched. In the preceding example,
the same results could also be achieved by deﬁning the following clues:
Clue Name Match Parameter
NUMBER A=5551111
EXTENSION B=013