a or b
a or b performs a logical OR between a and b. If a or b are not booleans, 0 represents a logical false and any nonzero value represents a logical true. The truth table for this operator is shown below.
a |
b |
a or b |
false |
false |
false |
false |
true |
true |
true |
false |
true |
true |
true |
true |
a and b must be scalars.