Skip to content

Comparison and Logic ​

These instructions compare scalar values and evaluate value truthiness.

OpcodeArgumentsOperands (stack)Description
gttypeleft, rightReplaces two operands with whether left > right after conversion to the selected type.
lttypeleft, rightReplaces two operands with whether left < right after conversion to the selected type.
getypeleft, rightReplaces two operands with whether left >= right after conversion to the selected type.
letypeleft, rightReplaces two operands with whether left <= right after conversion to the selected type.
eqtypeleft, rightReplaces two operands with whether they are equal after conversion to the selected type.
neqtypeleft, rightReplaces two operands with whether they differ after conversion to the selected type.
and-left, rightReplaces two operands with the Boolean AND of their truthiness.
or-left, rightReplaces two operands with the Boolean OR of their truthiness.
xor-left, rightReplaces two operands with the Boolean exclusive OR of their truthiness.
not-valueReplaces one operand with the Boolean negation of its truthiness.