# Greater

This function block compares numeric values and outputs a boolean result indicating whether the first value is greater than the remaining ones. Use it to drive decisions, alarms or conditional flow based on numeric thresholds.

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

`Number` The reference number (first value) that will be compared against the following inputs.

`Number` One or more numbers to compare with the reference value. Multiple inputs can be provided to check the reference value against several values at once.

(These are numeric input sockets.)

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

`Check` Boolean result. True when the first input is greater than all other provided inputs; otherwise False.

(The output is a boolean socket.)

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

`No Controls` This block has no additional UI widgets. Behavior is controlled solely by the values supplied to its input sockets.

## 🎯 Features <a href="#features" id="features"></a>

* Compares a single reference number to one or more other numbers in a single evaluation step.
* Supports multiple comparison inputs—returns True only if the reference is greater than every other value provided.
* Simple boolean output that can be routed into logic flow or trigger blocks.
* Lightweight and suitable for real-time checks (thresholds, gating, etc.).

## ⚙️ Running mechanism <a href="#running-mechanism" id="running-mechanism"></a>

When evaluated, the block reads the current numeric inputs. If only two values are connected it compares them directly. If more than two values are present it ensures the first value is greater than each of the remaining values. The resulting boolean is emitted on the `Check` output and can be used immediately by downstream blocks.

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

* Combine with `Number Input` to set a manual threshold and compare live sensor or computed values.
* Use together with `And` or `Or` to combine multiple comparisons into a single decision chain.
* Use `Not` to invert the result when you need the opposite condition.
* Feed the output into `Counter` to count how many times the condition becomes true, or into `Scope` to visualize when the comparison is active.
* Use `Maximum` or `Minimum` to produce comparative values first, then check them with this block.
* For flows that require all comparisons to be true across a list of values, pair with `All True` to aggregate several boolean checks.

(hints above reference other available function blocks to help compose larger flows.)

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

* If the output is always False, ensure all inputs provide valid numeric values. Use `Is None` or `Data Type Converter` upstream to validate or coerce inputs.
* If comparisons behave unexpectedly for floating values, consider normalizing or rounding inputs (use `Round`) before comparing.
* If you expect multiple comparisons but the result appears based on only two values, verify that additional numeric sockets are actually connected and providing data.


---

# 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/logic/greater.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.
