| layout | page |
|---|---|
| title | Operators |
| description | Complete reference for all operators in Osprey |
All operators available in Osprey.
!= - Inequality
Compares two values for inequality.
% - Modulo
Returns the remainder of dividing the first number by the second.
* - Multiplication
Multiplies two numbers.
+ - Addition
Adds two numbers together.
- - 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
Takes the result of the left expression and passes it as the first argument to the right function. Enables functional programming and method chaining.