> 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/operators/and.md). Agents can also search and read this documentation through its [MCP server](https://docs.buildings.ability.abb/collection/~gitbook/mcp).

# And

Combine boolean conditions so every input must be true.

Use **And** when several conditions must be true together. For example, allow a path only on weekdays during office hours.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-6a57bf65c3f429d254bfbdbf5de65705070e8f84%2Frule-chain-and-palette.png?alt=media" alt="And entry in the Operators palette."><figcaption><p>And 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-ac580c2dae23fa00ece728c0191662a33e88cac1%2Frule-chain-and-node.png?alt=media" alt="Configured And node with two boolean inputs and one output."><figcaption><p>And configured for two conditions</p></figcaption></figure>

## Inputs and outputs

* **Inputs:** Blue boolean conditions.
* **Output:** `true` only if every input is true. Any false input produces `false`. Additional output pins carry the same result.

And combines the input values during an execution. The conditions do not need to become true at the same moment.

## 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-899da4ac601f648bb90a200662acd5395115d122%2Frule-chain-and-settings.png?alt=media" alt="And settings with two inputs, one output and a note, with callouts A to D."><figcaption><p>And settings</p></figcaption></figure>

| Reference | Setting     | Purpose                                                           |
| --------- | ----------- | ----------------------------------------------------------------- |
| **\[A]**  | Input pins  | Set `1` to `100` inputs. Use one pin for each required condition. |
| **\[B]**  | Output pins | Set `1` to `100` output pins for the same result.                 |
| **\[C]**  | Note        | Explain the combined conditions on the node.                      |
| **\[D]**  | Save        | Apply the node settings. Save the chain separately in the editor. |

## Combine weekdays and office hours

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). Configure a [Days Schedule for Monday to Friday and a Time Schedule for 08:00 to 18:00](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/schedule.md). Keep the chain paused while configuring.

1. Drag **And** from **Operators** onto the workspace.\
   ▷ The settings window opens.
2. Set **Input pins** **\[A]** to `2`.
3. Set **Output pins** **\[B]** to `1`.
4. Enter `Weekdays during office hours` in **Note** **\[C]**.
5. Click **Save** **\[D]**.
6. Connect the Days Schedule output to the first And input.
7. Connect the Time Schedule output to the second And input.
8. Connect the And output to the next block.
9. 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 Schedules run before And and the next block runs after it.
10. Click **Save** in the editor.

An execution on Monday at `10:00` produces `true`. An execution on Saturday at `10:00`, or Monday at `20:00`, produces `false`.

## Related documentation

* [Schedule](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/conditions/schedule.md) to configure time and weekday checks.
* [Or](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/or.md) when any condition may be true.
* [Not](https://docs.buildings.ability.abb/collection/platform/alarms-rules-and-escalations/rule-chains/operators/not.md) to invert a boolean result.


---

# 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/operators/and.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.
