[Ride v5] Operators
⚠️ This is the documentation for the Standard library version 5. 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 |
func | Function local definition |
let | Lazy definition of a variable |
strict | Strict definition of a variable |
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 |
See examples of the List article.
Unary operators
Operator | Description |
- | Unary minus |
Logical operators
Operator | Description |
&& | Logical AND |
|| | Logical OR |
! | Logical negation |
Please note: logical operators only work with values of Boolean
type. Int
values are not supported.