[Ride v4 and v3] Operators
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
Arithmetic operators
Operator | Description |
+ | Addition |
- | Subtraction |
* | Multiplication |
/ | Division |
% | Remainder |
The / operator uses the FLOOR rounding method, see Rounding variables. For example, the result of -1 / 100
is -1
.
Comparison operators
Operator | Description |
< | Less than |
> | Greater than |
<= | Less than or equal |
>= | Greater than or equal |
Equality operators
Operator | Description |
== | Equality |
!= | Inequality |
Local definition operators
Operator | Description |
let | Variable local definition |
func | Function local definition |
Conditional operators
List operators
Operator | Description |
++ | Concatenation |
:+ | Adding the element to the end of the list |
:: | Adding the element to the beginning of the list |
⚠️ ++
and :+
operators are added in Standard library version 4.
See examples of the List article.
Unary operators
Operator | Description |
- | Unary minus |
! | Logical negation |
Logical operators
Operator | Description |
&& | Logical AND |
|| | Logical OR |