Less Than Or Equal
This node checks if the first number is less than or equal to the second number.
The Less Than Or Equal node performs comparison operations to test ordering relationships.
The Less Than Or Equal node compares two numbers and returns true if the first number is less than or equal to the second number, false otherwise.
Numbers
| Data | Description |
|---|
| First Number | The number to compare (default: 0) |
| Second Number | The number to compare against (default: 0) |
Actions
| Signal | Description |
|---|
| Do | Triggers the comparison and emits True/False condition signals based on the result |
Outputs
Data
| Data | Description |
|---|
| Result | Boolean result of the less-than-or-equal comparison |
Signals
| Signal | Description |
|---|
| True Condition | Emitted when the result is true on Do |
| False Condition | Emitted when the result is false on Do |
| Done | Triggered when the comparison is complete |
Usage
Example Use Cases
- Validation: Check if values are within acceptable ranges
- Game Logic: Test if scores meet thresholds, health is below danger levels
- Form Controls: Validate maximum input values
- Sorting Logic: Implement custom sorting algorithms
Examples
| First Number | Second Number | Result |
|---|
| 3 | 5 | true |
| 5 | 5 | true |
| 7 | 5 | false |
| -2 | 0 | true |