OP_BOOLOR

(155 | 0x9b)

Input

2 items

|

Output

1 items

Similar to OP_BOOLAND, OP_BOOLOR performs a logical OR operation on the top two items on the stack. If at least one of the items is nonzero, OP_BOOLOR pushes 1 (true); if both are 0, it pushes 0 (false). This opcode is useful in scripts that require a logical disjunction, where either of the conditions being true is sufficient.

OP_Code Walkthrough

Logical OR of the top two items of the stack

Pop Top Item a

Pop Top Item b

Compute logical OR of a and b

Push Result