# 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 <a href="#inputs" id="inputs"></a>

`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 <a href="#outputs" id="outputs"></a>

`Check` - Boolean result (True or False) indicating the comparison outcome

## 🕹️ Controls <a href="#controls" id="controls"></a>

This function block has no interactive controls. It operates purely on the numeric inputs provided to its sockets.

## ⚙️ How it runs <a href="#how-it-works" id="how-it-works"></a>

* 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 <a href="#usage" id="usage"></a>

* 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 <a href="#tips-and-tricks" id="tips-and-tricks"></a>

* 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 <a href="#troubleshooting" id="troubleshooting"></a>

* 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.augelab.com/function-blocks/blocks-reference/data-logic/logic/smaller.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
