# Not Equals

This function block compares multiple numeric inputs and outputs a boolean result that indicates whether any of the provided numbers differs from the first one. It's useful in logic flows where you need to check consistency between several readings or values.

## 📥 Inputs (sockets) <a href="#inputs" id="inputs"></a>

`Number` One or more numeric sockets. Provide at least two numeric sources to compare. The first connected value is used as the reference and all following values are compared against it. The number of these sockets can be adjusted with the control below.

## 📤 Outputs (sockets) <a href="#outputs" id="outputs"></a>

`Check` A boolean result. Returns TRUE when at least one of the provided numeric inputs is different from the first (reference) value. Returns FALSE when all provided values are equal (or when only a single value is present).

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

`Input size` Dropdown control that sets how many `Number` sockets are available (values from 2 up to 20). Use this to add or remove input sockets depending on how many values you need to compare.

## ⚙️ How it runs <a href="#running-mechanism" id="running-mechanism"></a>

* The block watches the active numeric sockets you provide.
* It uses the first available number as the reference value.
* Each other connected number is checked against that reference.
* If any of those numbers differs from the reference, the block outputs TRUE on the `Check` socket. If all numbers are equal (or only one value is present), it outputs FALSE.

The block ignores sockets that are not connected, so only connected numeric values are considered.

## ✨ Key features <a href="#features" id="features"></a>

* Dynamic input count: easily configure how many values you want to compare with the `Input size` control.
* Simple boolean output suitable for downstream logic and alarms.
* Works with any numeric sources (manual inputs, measurements, computed values).

## 📝 Usage instructions <a href="#usage" id="usage"></a>

1. Set how many values you want to compare using `Input size`.
2. Connect numeric sources to the `Number` sockets (for example, sensors, manual `Number Input`, or computed values).
3. Read the boolean result from the `Check` output and use it to trigger logic, notifications, or further processing.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

* Use `Number Input` or `Number Range` blocks to feed test values into the `Number` sockets while building your flow.
* Combine the `Check` output with logical blocks such as `And` or `Or` to build richer decision logic.
* Use `All True` when you need the opposite behavior (check that a set of boolean conditions are all true) alongside this block in larger logic chains.
* Log or visualize numeric values with `Scope` or inspect them with `Debug Input` to understand why the comparison result is TRUE.
* Use `Data Memory` if you want to freeze or hold a reference value for later comparison sequences.
* Chain with comparison blocks like `Equals`, `Greater`, or `Smaller` to build compound checks before feeding values into this block.

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

* No change in output: verify that multiple `Number` sockets are connected and providing values. If only one value is present, output will be FALSE.
* Unexpected TRUE: check that all numeric inputs use the same units/scale (e.g., mm vs cm) and that small measurement noise isn't causing differences. Consider preprocessing or rounding upstream.
* Missing sockets: if you need more inputs, increase `Input size` to expose more `Number` sockets. If you see extra unused sockets, reduce `Input size` to remove them.


---

# 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/data-logic/mathmetical-operations/not-equals.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.
