Purpose |
The OR operator works as both a logical and a bitwise arithmetic operator. | ||||||||||||||||||
Syntax |
p OR q | ||||||||||||||||||
Remarks |
Using OR as a logical operator OR returns TRUE (non-zero) if and only if either or both of its operands is TRUE. Here is OR's truth table:
Using OR as a bitwise arithmetic operator An OR mask sets selected bits of an
| ||||||||||||||||||
See also |
Arithmetic Operators, AND, EQV, IMP, ISFALSE, ISTRUE, LET, NOT, XOR |