Comparison operators

Syntax

…expr… > …expr…

…expr… < …expr…

Typing

t, t -> BOOL

Description

Strict comparison operators.

Values of any type can be compared, but both values must have the same type.

Examples

expression evaluates to
1 > 0 TRUE
1 > 1 FALSE
TRUE > FALSE TRUE
"foo" < "bar" FALSE
(5; 1) < (5; 2) TRUE

See Also

Comparison operators Equality test