Comparison

ufLang supports the following binary comparison operators:

Operator

Name

Description

Example

==

Equal

Returns true if the left operand is equal to the right operand.

x == 5

!=

Not equal

Returns true if the left operand is not equal to the right operand.

x != 3

>

Greater

Returns true if the left operand is greater than the right operand.

x > 2

<

Less

Returns true if the left operand is less than the right operand.

x < 10

>=

Greater or equal

Returns true if the left operand is greater than or equal to the right operand.

x >= 7

<=

Less or equal

Returns true if the left operand is less than or equal to the right operand.

x <= 8

Last updated