OR operator OR operator Syntax ... value OR value ... Function Perform the logical OR operation on two values. Details The OR operator operates on two values, resulting in their logical OR combination. For example, during the OR operation c = a OR b the following four situations can occur: That is, the result is TRUE if either (or both) of the two operand values is logically TRUE. To review the order of evaluation for operators within expressions, see the section Order of Evaluation in the eV+ Language User's Guide . Example In the following sequence, the instructions immediately following the IF instruction are executed if either ready is TRUE (that is, nonzero) or count equals 1.
The instructions are not executed if both ready is FALSE and count is not equal to 1. IF ready OR (count == 1) THEN . . . END eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 376 a b c FALSE FALSE -> FALSE FALSE TRUE -> TRUE TRUE FALSE -> TRUE TRUE TRUE -> TRUE