> 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/store-values/boolean.md).

# Boolean

Retain a boolean value until a rising Trigger input accepts another update.

Use **Boolean** under **Storing** to retain a boolean result between executions of the same running chain. A separate Trigger input controls when a new value is accepted.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-c5d7cb9f4fa047a8d6611cdc110a182b0c993981%2Frule-chain-boolean-store-palette.png?alt=media" alt="Boolean entry in the Storing palette."><figcaption><p>Boolean 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-e4052a00377467a2fa1e742843dfbffca7e81727%2Frule-chain-boolean-store-node.png?alt=media" alt="Configured Boolean store with Trigger and Value inputs and one boolean output."><figcaption><p>Boolean configured to retain a condition result</p></figcaption></figure>

## Inputs and outputs

* **Trigger:** A blue boolean input. A change from `false` to `true` accepts an update.
* **Value:** The blue boolean input to retain when Trigger accepts an update.
* **Output:** The stored boolean value. Before the first accepted update, it contains **Initial value**.

Boolean always accepts updates on a rising edge. If Trigger remains true, changes to Value are ignored. Trigger must be false on an execution before another true input can accept a new value. A false Trigger keeps the stored value, rather than resetting it.

## 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-ccdd822992b589ef70cced9dafcc463bf62a4062%2Frule-chain-boolean-store-settings.png?alt=media" alt="Boolean storage settings with Initial value false and a note, with callouts A to C."><figcaption><p>Boolean settings</p></figcaption></figure>

| Reference | Setting       | Purpose                                                               |
| --------- | ------------- | --------------------------------------------------------------------- |
| **\[A]**  | Initial value | Select `false` or `true` for the output before an update is accepted. |
| **\[B]**  | Note          | Explain the stored result on the node.                                |
| **\[C]**  | Save          | Apply the node settings. Save the chain separately in the editor.     |

The settings contain Initial value and Note. There is no Trigger mode selector for Boolean.

{% hint style="warning" %}
Stored values are runtime state, not permanent storage. Reinitializing the chain or restarting the rule engine resets the output to Initial value.
{% endhint %}

## Retain a condition result

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). Prepare two boolean outputs: an acceptance condition for Trigger and the result to retain for Value. Keep the chain paused while configuring.

1. Drag **Boolean** from **Storing** onto the workspace.\
   ▷ The settings window opens.
2. Select `false` in **Initial value** **\[A]**.
3. Enter `Last accepted condition` in **Note** **\[B]**.
4. Click **Save** **\[C]**.
5. Connect the acceptance condition to **Trigger**.
6. Connect the result to retain to **Value**.
7. Connect the stored output to the next block.
8. Set the [execution order](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/configure-rule-chain.md#set-order) so both input sources run before Boolean and the next block runs after it.
9. Click **Save** in the editor.

The output starts as `false`. When Trigger first becomes true with Value true, the output becomes `true`. If Value then becomes false while Trigger stays true, the output remains `true` until a later rising edge accepts the false value.

## Related documentation

* [Condition](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/condition.md) to supply a boolean comparison result.
* [Value](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/store-values/value.md) to store a numeric value and choose Trigger mode.
* [Store Values](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/store-values.md) for the shared storage behavior.


---

# 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/store-values/boolean.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.
