Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 654 Bytes

15.mdx

File metadata and controls

28 lines (18 loc) · 654 Bytes
fork group
Frontier
Comparison & Bitwise Logic Operations

Index 1 is top of the stack. See PUSH.

Stack input

  1. a: integer.

Stack output

  1. a == 0: 1 if a is 0, 0 otherwise.

Examples

* Input Output * * Input Output
1 10 0 * 1 0 1

Reproduce in playground.

Error cases

The state changes done by the current context are reverted in those cases:

  • Not enough gas.
  • Not enough values on the stack.