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 Input to provide simple numeric values from the UI.

  • Use Number Range to supply limits and combine with other comparison blocks to check if a value lies inside or outside a range.

  • Combine with Greater to build "between" checks: for example, Greater and Smaller together can test lower and upper bounds.

  • Combine with logic blocks such as And / Or / Not to create more complex conditions based on multiple comparisons.

  • Visualize numeric signals with Scope or log results with CSV Export when debugging or recording events.

πŸ’‘ Tips and Tricks

  • For range checking, pair Greater and Smaller so the first comparison checks the lower bound and the second checks the upper bound; then combine them with And to 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 Number inputs β€” the block will check the first value against each in turn.

  • Use Counter together 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 Check output to Led Output or use it to trigger other control blocks.

  • Use Debug Input or Scope to inspect input values when results aren’t as expected.

πŸ› οΈ Troubleshooting

  • Unexpected results? Confirm the correct ordering of inputs β€” the first Number is 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 Scope or Debug Input to observe incoming values and verify they update as expected.

Last updated

Was this helpful?