Skip to content

Comparisons ​

Each comparison takes a destination and two source registers. The result is written to the destination. See CandleVM comparison opcodes for equality and ordering rules.

CASM mnemonicCandleVM opcodeOperandsBehavior
eqEqdestination, left, rightCompares the two values using runtime value equality.
neNedestination, left, rightWrites the inverse of value equality.
obj_eqObjectEqdestination, left, rightCompares the heap objects referenced by the source registers.
obj_neObjectNedestination, left, rightWrites the inverse of object equality.
ltLtdestination, left, rightTests whether left is less than right.
lteLtedestination, left, rightTests whether left is less than or equal to right.
gtGtdestination, left, rightTests whether left is greater than right.
gteGtedestination, left, rightTests whether left is greater than or equal to right.

Built for the Candle ecosystem · Powered by VitePress.