ComparisonOpcodes
Opcodes for comparator operators such as >, <, =, !, etc.
opEq
function opEq(address _ctxProgram, address) public
Compares two values in the stack. Put 1 to the stack if they are equal.
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opNotEq
function opNotEq(address _ctxProgram, address) public
Compares two values in the stack. Put 1 to the stack if they are not equal.
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opLt
function opLt(address _ctxProgram, address) public
Compares two values in the stack. Put 1 to the stack if value1 < value2
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opGt
function opGt(address _ctxProgram, address) public
Compares two values in the stack. Put 1 to the stack if value1 > value2
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opLe
function opLe(address _ctxProgram, address) public
Compares two values in the stack. Put 1 to the stack if value1 <= value2
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opGe
function opGe(address _ctxProgram, address) public
Compares two values in the stack. Put 1 to the stack if value1 >= value2
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opNot
function opNot(address _ctxProgram, address) public
Revert last value in the stack
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opSwap
function opSwap(address _ctxProgram, address) public
Swaps two last element in the stack
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |