Skip to content

or

Greater of two values, logical OR

x or y    or[x;y]
x | y     |[x;y]

Returns the greater of the underlying values of x and y. In the case of boolean values, it is equivalent to the OR operator.

q)2 or 3
3
q)1010b or 1100b  /logical OR with booleans
1110b
q)"sat" or "cow"
"sow"

or is a multithreaded primitive.

Greater