OP_BOOLAND

(154 | 0x9a)

Input

2 items

|

Output

1 items

OP_BOOLAND is a logical operation that takes the top two items from the stack and performs a logical AND operation. If both items are nonzero, it pushes 1 (true) onto the stack; otherwise, it pushes 0 (false). This opcode is used in scripts where a logical conjunction of two conditions is necessary.

OP_Code Walkthrough

Logical AND of the top two items of the stack

Pop Top Item a

Pop Top Item b

Compute logical AND of a and b

Push Result