Comparison Operators

These are operators that compare two values and return a Boolean result.

Name Maths Operator Example Note
Equal to x=y == x == y Allows for type coercion.
Not equal to x≠y != x != y Allows for type coercion.
Greater than x>y > x > y
Less than x<y < x < y
Greater or equal x≥y >= x >= y
Less or equal x≤y <= x <= y

^comparison-ops