Less Operator - Haufe-Lexware/haufe.no-frills-transformation GitHub Wiki
The Less and LessEqual operators compare two parameters and returns boolean true if the first parameter is less than (or equal to) the second parameter.
These two parameters behave differently depending on the parameters return types:
- If both parameters return an
intvalue, the operation compares the values numerically - Otherwise, the operation compares the values as
stringvalues.
| What | Type |
|---|---|
| Syntax | Less[Equal](a, b) |
a |
int, string |
b |
int, string |
| Return type | bool |
Examples:
Less("Peter", "Paul")returnsfalseLess("Amanda", "Amanda")returnsfalseLessEqual("Amanda", "Amanda")returnstrueLessEqual(50, 70)returnstrueLess("99929928989238923", "Aaron")returnstrue(as the values are treated asstrings)