Performs a logical OR of two expressions.
OR(val1, val2)
val1 |
- |
A scalar, series, or table. |
val2 |
- |
A scalar, series, or table. |
A scalar, series, or table.
or(W1, W2)
returns a series or table with zeros at points where both W1 and W2 contain a zero, and ones where either W1 and W2 have nonzero values.
or({0, 2, 5, 1}, 0)
returns a series {0, 1, 1, 1}
OR can also be performed using the infix operator ||. The function or(W1, W2) is identical to the expression W1 || W2.
See |+ to perform a bitwise OR operation.
< <= > >= == != (Conditional Operators)
&& || ! AND OR NOT XOR (Logical Operators)