Skip to main content

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

DataDescription
First NumberThe number to compare (left side of expression). Default: 0.
Second NumberThe number to compare against (right side of expression). Default: 0.

Actions

SignalDescription
DoTriggers the comparison. The logic is only executed when this signal is received.

Outputs

Data

DataDescription
ResultThe boolean result of First Number < Second Number.

Signals

SignalDescription
True ConditionTriggered if First Number is strictly less than Second Number.
False ConditionTriggered if First Number is greater than or equal to Second Number.
DoneTriggered after the comparison is complete, regardless of the result.

Usage

Use this node for conditional logic based on numeric thresholds.

Example Use Cases

  1. Health Check: Check if Current Health < Max Health.
  2. Inventory Limit: Check if Item Count < Capacity.
  3. Price Threshold: Check if Price < Budget.

Detailed Behavior

  1. Strict Inequality: The node uses the < operator. If inputs are equal, the result is false.
  2. Validation: Inputs must be valid numbers within the ±1 trillion range.
  3. Signal Flow:
    • When Do is triggered, the node calculates the result.
    • It updates the Result output.
    • It emits either True Condition or False Condition.
    • Finally, it emits Done.

Troubleshooting

  • Equal Values: If both numbers are 5, 5 < 5 is false. Use Less Than Or Equal if you want this case to be true.