Skip to main content

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

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 less than or equal to Second Number.
False ConditionTriggered if First Number is strictly greater than Second Number.
DoneTriggered 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

  1. Timer Check: Check if Time Elapsed <= Time Limit.
  2. Stock Check: Check if Items Requested <= Items Available.
  3. Progress: Check if Steps Completed <= Total Steps.

Detailed Behavior

  1. Inclusive Inequality: The node uses the <= operator. If inputs are equal, the result is true.
  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

  • Strict Comparison: If you want 5 <= 5 to be false, use the Less Than node instead.