Logical Operator
Certain conditions can use operations to compare two values.
| Operation | Symbol |
|---|---|
| Greater Than | > |
| Greater than or Equal to | >=, => |
| Equal to | =, == |
| Less than or Equal to | <=, =< |
| Less than | < |
These should only be expected to work on placeholders/input that parse numerically!
Range Operators
Range operators check whether a value falls between two bounds. The value format is lower..upper.
| Operation | Symbol |
Description |
|---|---|---|
| Inclusive range (both ends) | .. |
value >= lower && value <= upper |
| Exclusive lower, inclusive upper | <.. |
value > lower && value <= upper |
| Inclusive lower, exclusive upper | ..< |
value >= lower && value < upper |
| Exclusive range (both ends) | <..< |
value > lower && value < upper |
The - symbol is also accepted as an alias for .. (inclusive both ends).