Less Than Or Equal
This node compares two numbers to check if the first is less than or equal to the second.
The Less Than Or Equal node performs a "less than or equal" comparison (<=) and routes signals based on the result.
The Less Than Or Equal node compares two numeric inputs. It evaluates whether First Number is less than or equal to Second Number. It provides both a boolean data output and signal outputs for conditional logic flow.
Inputs
Numbers
| Data | Description |
|---|---|
| First Number | The number to compare (left side of expression). Default: 0. |
| Second Number | The number to compare against (right side of expression). Default: 0. |
Actions
| Signal | Description |
|---|---|
| Do | Triggers the comparison. The logic is only executed when this signal is received. |
Outputs
Data
| Data | Description |
|---|---|
| Result | The boolean result of First Number <= Second Number. |
Signals
| Signal | Description |
|---|---|
| True Condition | Triggered if First Number is less than or equal to Second Number. |
| False Condition | Triggered if First Number is strictly greater than Second Number. |
| Done | Triggered after the comparison is complete, regardless of the result. |
Usage
Use this node for conditional logic where the boundary value is included.
Example Use Cases
- Timer Check: Check if
Time Elapsed<=Time Limit. - Stock Check: Check if
Items Requested<=Items Available. - Progress: Check if
Steps Completed<=Total Steps.
Detailed Behavior
- Inclusive Inequality: The node uses the
<=operator. If inputs are equal, the result istrue. - Validation: Inputs must be valid numbers within the ±1 trillion range.
- Signal Flow:
- When
Dois triggered, the node calculates the result. - It updates the
Resultoutput. - It emits either
True ConditionorFalse Condition. - Finally, it emits
Done.
- When
Troubleshooting
- Strict Comparison: If you want
5 <= 5to be false, use the Less Than node instead.