The OR operator (also written | or ||) takes two Boolean operands and returns TRUE if either operand is TRUE. Note that this operator is usually used to connect two comparisons.
The evaluator does not evaluate the second Boolean operand if the first one is TRUE (since the result must be TRUE already).
Examples:
(1 > 2) OR ("JUAN" ~= "JUAN")
Result = TRUE
(1 < 2) OR ("JUAN" ~= "JUAN")
Result = TRUE
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |