LessEqual
The LessEqual function outputs the result of the less than or equal relational operator performed on the inputs.
Input/Output
Number of Connections: 1
| Input | Data Type | Description |
| Input1 | All | Data |
| Input2 | All | Sets the Data property. (optional) |
| Output | Data Type | Description |
| Output1 | Boolean | The result of the less than or equal relational operator performed on the inputs. |
Property
| Name | Property Type | Description |
| Data | string | The data to be compared against the first input stream's data. |
| CompareType | choice |
Specifies the data type that the data is to be cast to.
| (Input1) | - | Cast the data to the same data type as Input1.
|
| String | - | Cast the data to the String data type.
|
| Integer | - | Cast the data to the Integer data type.
|
| Decimal | - | Cast the data to the Decimal data type.
|
| Double | - | Cast the data to the Double data type.
|
| Boolean | - | Cast the data to the Boolean data type.
|
| DateTime | - | Cast the data to the DateTime data type.
|
| Binary | - | Cast the data to the Binary data type.
|
|
How comparisons are made
The value is compared according to specified value by CompareType.
| Data Type | How comparisons |
| Integer, Decimal, Double and DateTime | The numerical or time value is compared |
| String | The strings are compared in lexicographical order. |
| Boolean | True is treated as larger than False. |
| Binary | Starting from the front of the byte streams, the byte values are compared by size. |
When the value of Data cannot be converted to specified data type, the warning is displayed in compile time and it is treated as a minimum value in that type(*)
* 0 when numeric type, "1970-01-01T00:00:00" when date type.