Opcodes · arithmetic · enabled
OP_0NOTEQUAL (0x92)
Pushes 0 if the top number is 0, otherwise 1.
Verified
- Stack in → out
- a → a!=0
- Since
- Original Bitcoin script
- Cost
- Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
- Bitcoin status
- Same in Bitcoin (BTC)
Example
OP_5 OP_0NOTEQUAL OP_VERIFY Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.