Opcodes · control · enabled

OP_ELSE (0x67)

Switches to the other branch of the current OP_IF or OP_NOTIF block.

Verified
Stack in → out
∅ → ∅
Since
Original Bitcoin script
Cost
Base instruction cost 100.
Bitcoin status
Same in Bitcoin (BTC)

Example

OP_IF OP_1 OP_ELSE OP_0 OP_ENDIF

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)