-
Notifications
You must be signed in to change notification settings - Fork 27
Operators
Shaun Lawrence edited this page Aug 19, 2020
·
2 revisions
Below is the current list of supported operators.
| Name | Operator | Usage |
|---|---|---|
| Add | + | 1 + 2 |
| Unary plus | + | +2 |
| Subtract | - | 1 - 2 |
| Unary minus | - | -2 |
| Multiply | * | 2 * 2 |
| Divide | / | 2 / 2 |
| Modulus | % | 6 % 2 |
| Equals | =, == | 1 == 1 |
| Not equals | !=, <> | 1 <> 2 |
| Greater than | > | 2 > 1 |
| Greater than or equal | >= | 2 >= 2 |
| Less than | < | 1 < 2 |
| Less than or equal | <= | 2 <= 2 |
| Boolean NOT | !, NOT | !true && NOT false |
| Boolean AND | &&, AND | true && false |
| Boolean OR | ||, OR | true || false |
| Bitwise AND | & | 2 & 2 |
| Bitwise OR | | | 2 | 2 |
| Bitwise XOR | ^ | 2 ^ 2 |
| Bitwise NOT | ~ | 2 ~ 2 |
| Left shift | << | 2 << 2 |
| Right shift | >> | 2 >> 2 |
| Null Coalesce | ?? | null ?? 0 |
- AddDays
- AddHours
- AddMilliseconds
- AddMinutes
- AddMonths
- AddSeconds
- AddYears
- DayOf
- HourOf
- MillisecondOf
- MinuteOf
- MonthOf
- SecondOf
- YearOf
- DaysBetween
- HoursBetween
- MillisecondsBetween
- MinutesBetween
- SecondsBetween