> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/condition.md).

# Condition

Compare a numeric input with a fixed value or another numeric input.

Use **Condition** to check a numeric value against a threshold or another value. Its boolean result can control an action or feed an [And](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/and.md) or [Or](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/or.md) block.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-60cdb30a0c2ef6bc4fa1dce6061a86d9a860126e%2Frule-chain-condition-palette.png?alt=media" alt="Condition entry in the Conditions palette."><figcaption><p>Condition in the palette</p></figcaption></figure>

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-a6c064021cdb8858a1a1ee3d60a1c541dab9e4a3%2Frule-chain-condition-node.png?alt=media" alt="Configured GT condition comparing an input with 1000."><figcaption><p>Condition configured as Greater than 1000</p></figcaption></figure>

## Inputs and outputs

* **Input:** One or two numeric inputs, shown in red. With one input, the comparison uses the fixed **Value**. With two inputs, it compares **In 1** with **In 2**.
* **Output:** A blue boolean result. It is `true` when the comparison is met and `false` otherwise. Additional output pins carry the same result.

## Configurable settings

Open the node's gear icon to change its settings.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-eb37285014ac3e8429f5ef7ecc6aff7db021348d%2Frule-chain-condition-settings.png?alt=media" alt="Condition settings for one input, one output, GT and a fixed value of 1000, with callouts A to F."><figcaption><p>Condition settings</p></figcaption></figure>

| Reference | Setting     | Purpose                                                                         |
| --------- | ----------- | ------------------------------------------------------------------------------- |
| **\[A]**  | Input pins  | Choose `1` for a fixed comparison value or `2` to compare two connected values. |
| **\[B]**  | Output pins | Set `1` to `100` output pins for the same boolean result.                       |
| **\[C]**  | Condition   | Select the comparison from the options below.                                   |
| **\[D]**  | Value       | Enter the numeric comparison value. This field appears only with one input pin. |
| **\[E]**  | Note        | Add a short explanation displayed on the node.                                  |
| **\[F]**  | Save        | Apply the node settings. Save the chain separately in the editor.               |

| Condition                         | Result is true when                          |
| --------------------------------- | -------------------------------------------- |
| **EQ (Equal to)**                 | The first value equals the comparison value. |
| **NEQ (Not equal to)**            | The values differ.                           |
| **GT (Greater than)**             | The first value is greater.                  |
| **GE (Greater than or equal to)** | The first value is greater or equal.         |
| **LT (Less than)**                | The first value is less.                     |
| **LE (Less than or equal to)**    | The first value is less or equal.            |

With two inputs, the comparison value is **In 2**. EQ and NEQ compare exact values, not a tolerance range.

## Configure a CO2 threshold

Before you begin, [open the rule chain editor](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/open-the-configuration-of-an-existing-rule-chain.md) and configure [Get Data](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/nodes/get-data.md) for carbon dioxide (CO2) concentration in parts per million (ppm). Keep the chain paused while configuring.

1. Drag **Condition** from **Conditions** onto the workspace.\
   ▷ The settings window opens.
2. Set **Input pins** **\[A]** to `1`.
3. Set **Output pins** **\[B]** to `1`.
4. Select **GT (Greater than)** in **Condition** **\[C]**.
5. Enter `1000` in **Value** **\[D]**.
6. Enter `CO2 is above 1000 ppm` in **Note** **\[E]**.
7. Click **Save** **\[F]**.\
   ▷ The node shows **GT** and the comparison value.
8. Connect the numeric Get Data output to the Condition input.
9. Connect the boolean Condition output to the next block.
10. Set the [execution order](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/configure-rule-chain.md#set-order) so Get Data runs before Condition and the next block runs after it.
11. Click **Save** in the editor.

When the chain executes, an input of `1100` produces `true`. An input of `1000` or `900` produces `false`.

## Related documentation

* [Time](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/time.md) to require a condition to remain true before passing it on.
* [And](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/and.md) to require several conditions together.
* [Configure Rule Chain](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/configure-rule-chain.md) for connections and chain triggers.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/condition.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
