comparison operators
Syntax
<firstOperand> = <secondOperand>
<firstOperand> is <secondOperand>
<firstOperand> ≠ <secondOperand>
<firstOperand> is not <secondOperand>
<firstOperand> < <secondOperand>
<firstOperand> > <secondOperand>
<firstOperand> <= <secondOperand>
<firstOperand> >= <secondOperand>
Explanation
SuperCard has 10 operators that compare their two operands and return either true
or `false.
=
,is
Are the two operands equal? If the operands are text, this compares without regard to case, so e.g."HOUSE" = "house"
is the same astrue
.≠
,is not
Are the two operands not equal. This is the opposite of=
oris
. Again, note that case is ignored in comparison, so"HOUSE" ≠ "house"
is the same asfalse
.<
,<=
,>
,>=
compare whether one item is less/greater than the other. For numbers, that means it compares their numeric value. For text it means it compares their sort order (So e.g."Aa" < "Ab"
istrue
).