User Guide
606 Chapter 13: Operators
This operator can compare strings, integers, floating-point numbers, rects, and points. Be aware
that comparisons performed on rects or points are handled as if the terms were lists, with each
element of the first list compared to the corresponding element of the second list.
This is a comparison operator with a precedence level of 1.
= (equals)
Usage
-- Lingo syntax
expression1 = expression2
// JavaScript syntax
expression1 = expression2
Description
Comparison operator; compares two expressions, symbols, or objects and determines whether
expression1 is equal to expression2 (TRUE), or whether expression1 is not equal to
expression2 (FALSE).
This operator can compare strings, integers, floating-point numbers, rects, lists, and points.
Lists are compared based on the number of elements in the list. The list with more elements is
considered larger than the than the list with fewer elements.
This is a comparison operator with a precedence level of 1.
> (greater than)
Usage
-- Lingo syntax
expression1 > expression2
// JavaScript syntax
expression1 > expression2
Description
Comparison operator; compares two expressions and determines whether expression1 is greater
than
expression2 (TRUE), or whether expression1 is less than or equal to expression2
(FALSE).
This operator can compare strings, integers, floating-point numbers, rects, and points. Be aware
that comparisons performed on rects or points are handled as if the terms were lists, with each
element of the first list compared to the corresponding element of the second list.
This is a comparison operator with a precedence level of 1.