Less Than
This node compares two numbers to check if the first is strictly less than the second.
The Less Than node performs a "less than" comparison (<) and routes signals based on the result.
The Less Than node compares two numeric inputs. It evaluates whether First Number is strictly less than 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 strictly less than Second Number. |
| False Condition | Triggered if First Number is greater than or equal to Second Number. |
| Done | Triggered after the comparison is complete, regardless of the result. |
Usage
Use this node for conditional logic based on numeric thresholds.
Example Use Cases
- Health Check: Check if
Current Health<Max Health. - Inventory Limit: Check if
Item Count<Capacity. - Price Threshold: Check if
Price<Budget.
Detailed Behavior
- Strict Inequality: The node uses the
<operator. If inputs are equal, the result isfalse. - 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
- Equal Values: If both numbers are 5,
5 < 5is false. Use Less Than Or Equal if you want this case to be true.