About logical operators
Comparison clauses use logical operators to develop the logic. The following table describes each operator.
Operator
Definition
Example
and
All operands must be true for the component to trigger
Look for transactions that have a price per share greater than $99.99 AND were processed on June 15, 2001 AND were for accounts in New York The component will trigger when all three conditions are true.
or
Any of the operands must be true for the component to trigger
Look for transactions that have a price per share greater than $99.99 OR were processed on June 1, 2001 OR were for accounts in New York. The component will trigger when any one of the conditions, any combination of the conditions, or all of the conditions are true.
nand
“Not and” - any one of the operands must be false for the component to trigger
Look for transactions that do not have a price per share greater than $99.99 OR were not processed on June 15, 2001 OR were not for accounts in New York. The component will trigger when any one of the conditions, any combination of the conditions, or all of the conditions are false.
nor
“Not or” - all of the operands must be false for the component to trigger
Look for transactions that do not have a price per share greater than $99.99 AND were not processed on June 15, 2001 AND were not for accounts in New York. The component will trigger when all of the conditions are false.
Copyright IBM Corporation 2012. All Rights Reserved.