Opcodes · control · enabled
OP_ENDIF (0x68)
Ends an OP_IF / OP_NOTIF block. Every conditional block must be closed, or the script fails.
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.