The next example is a complex True-False test. It uses the positive operator IS in both lookup sub-tests within the following single lookup command:
mapi with %recipient% where (dept IS "sales") AND (position IS "manager")
If there are three recipients, this command requires the following three lookup operations, each containing two lookup sub-tests.
(mapi with srimmel@unipraxis.com where (dept IS "sales") AND (position IS "manager") ) OR (mapi with lsteel@unipraxis.com where (dept IS "sales") AND (position IS "manager") ) OR (mapi with fschaeffer@unipraxis.com where (dept IS "sales") AND (position IS "manager") )
For such a lookup command to be True, both subtests must be true. For example, for the first lookup command to be true, Spencer must be a manager and in the Sales department.
For the test itself to be true, only one of the three lookup operations needs to be true. That is, if Spencer is a manager and in the Sales department, then the test is true and the details for Lynda and Frank are not checked.
Copyright © 2014 CA.
All rights reserved.
|
|