Opcodes · arithmetic · enabled

OP_NOT (0x91)

Pushes 1 if the top number is 0, otherwise 0.

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_0 OP_NOT OP_VERIFY

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)
  2. CHIP-2021-05 VM Limits: Targeted Virtual Machine Limits