# AND

## Overview

![The And Node.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-65cfc4fc6dbd28d3752410b04f71192f6ce0308d%2Fandnodeupdatedimage.png?alt=media)

**AND** is a *logical operator* **Node**, which combines two or more **Boolean** expressions to yield a **Boolean** value, based on the inputs' logical relationship to one another. The **Node** outputs a *true* value if *all* of its inputs are also *true*. This is the equivalent of the `&&` operator in computer programming.

| Input 1 | Input 2 | Output |
| ------- | ------- | ------ |
| True    | True    | True   |
| True    | False   | False  |
| False   | True    | False  |
| False   | False   | False  |

[**Scope**](https://docs.incari.com/incari-studio/2023.1/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The And Node Attributes.](https://2628349686-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwnv17cpjDin2deSlOz0z%2Fuploads%2Fgit-blob-1e1db050743a014b2a3db6f385e8fe827ce595df%2Fnode-and2-attr.png?alt=media)

| Attribute | Type    | Description                                                                                                     |
| --------- | ------- | --------------------------------------------------------------------------------------------------------------- |
| `Count`   | **Int** | The amount of input **Sockets** the **Node** will have (the number of **Boolean** values that will be checked). |

## Inputs

| Input             | Type      | Description                                                           |
| ----------------- | --------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse** | A standard input **Pulse**, to trigger the execution of the **Node**. |
| `Input [n]`       | **Bool**  | The **Boolean** values to be checked.                                 |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard output **Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Output`           | **Bool**  | *True* if *all* of the input **Boolean** values are also *true*. Otherwise *false*.                                                    |

## See Also

* [**Boolean**](https://docs.incari.com/incari-studio/2023.1/toolbox/math/boolean)
* [**Flow Control**](https://docs.incari.com/incari-studio/2023.1/toolbox/flow-control)

## External Links

* [*Logical operation*](https://www.computerhope.com/jargon/l/logioper.htm) on Computer Hope.
