Smaller
This function block compares numeric values and outputs a boolean result. It is useful when you need to check whether a reference number is smaller than other values.
π₯ Inputs
Number - Reference numeric value (the first input used for comparison)
Number - Second numeric value (additional numeric inputs can be used to compare against the reference)
Notes:
The block accepts two or more numeric sockets. When more than two numbers are provided, the block compares the first number against each of the following numbers.
π€ Outputs
Check - Boolean result (True or False) indicating the comparison outcome
πΉοΈ Controls
This function block has no interactive controls. It operates purely on the numeric inputs provided to its sockets.
βοΈ How it runs
Two-number case: the block returns True when the first number is smaller than the second number, otherwise False.
Multiple-number case: the block returns True if the first number is smaller than any of the following numbers. If the first number is not smaller than any of the remaining inputs, the output is False.
This behavior makes the block suitable for checks like βis current value below a threshold?β or βis value smaller than at least one of several references?β
π Usage tips
Use
Number Inputto provide simple numeric values from the UI.Use
Number Rangeto supply limits and combine with other comparison blocks to check if a value lies inside or outside a range.Combine with
Greaterto build "between" checks: for example,GreaterandSmallertogether can test lower and upper bounds.Combine with logic blocks such as
And/Or/Notto create more complex conditions based on multiple comparisons.Visualize numeric signals with
Scopeor log results withCSV Exportwhen debugging or recording events.
π‘ Tips and Tricks
For range checking, pair
GreaterandSmallerso the first comparison checks the lower bound and the second checks the upper bound; then combine them withAndto assert a value is within the desired range.If a sequence of comparisons is needed (for example comparing one value against many thresholds), feed all thresholds as additional
Numberinputs β the block will check the first value against each in turn.Use
Countertogether with this block to count how many times a measured value falls below a set threshold.If you need to react to the boolean output (e.g., turn a light on), connect the
Checkoutput toLed Outputor use it to trigger other control blocks.Use
Debug InputorScopeto inspect input values when results arenβt as expected.
π οΈ Troubleshooting
Unexpected results? Confirm the correct ordering of inputs β the first
Numberis always treated as the reference value.Ensure all inputs are numeric. Use data-conversion or validation blocks if incoming data may be non-numeric.
If you donβt see the expected boolean changes over time, use
ScopeorDebug Inputto observe incoming values and verify they update as expected.
Last updated
Was this helpful?