These operators are used to compare two numbers or two text strings.
Operator | Example | Explanation |
EQ | g.Screen EQ 'SFNT' | If the global Screen variable is equal to SFNT, this returns true |
NE | g.Screen NE 'SFNT' | If the global Screen variable is NOT equal to SFNT, this returns true |
GT | l.settings:product:price GT 15 | If the product's price variable is GREATER than 15, this returns true |
LT | l.settings:product:price LT 15 | If the product's price variable is LESS than 15, this returns true |
GE | l.settings:product:price GE 15 | If the product's price variable is GREATER than or EQUAL to 15, this returns true |
LE | l.settings:product:price LE 15 | If the product's price variable is LESS than or EQUAL to 15, this returns true |
Now that we have a quick overview of the comparison operators, lets dive into some more complicated conditional statements.