Operators

Arithmetic, comparison and pipeline operators are listed below. Boolean &&, || and ! are covered by boolean operations; Result fallback ?: is covered by Result preservation.

!= - Inequality

Compares two values for inequality.

% - Modulo

Returns the remainder of dividing the first number by the second.

* - Multiplication

Multiplies two numbers.

+ - Addition

Adds numbers, concatenates strings or lists, and merges maps.

- - Subtraction

Subtracts the second number from the first.

/ - Division

Divides the first number by the second.

< - Less Than

Checks if the first value is less than the second.

<= - Less Than or Equal

Checks if the first value is less than or equal to the second.

== - Equality

Compares two values for equality.

> - Greater Than

Checks if the first value is greater than the second.

>= - Greater Than or Equal

Checks if the first value is greater than or equal to the second.

|> - Pipe Operator

Passes the left value as the first argument of the call on the right.