Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 742 Bytes

11.mdx

File metadata and controls

30 lines (20 loc) · 742 Bytes
fork group
Frontier
Comparison & Bitwise Logic Operations

Index 1 is top of the stack. See PUSH.

Stack input

  1. a: left side integer.
  2. b: right side integer.

Stack output

  1. a > b: 1 if the left side is bigger, 0 otherwise.

Examples

* Input Output * * Input Output
1 10 1 * 1 10 0
2 9 * 2 10

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.