> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/2022.2/toolbox/flow-control/toggle.md).

# Toggle

## Overview

![The Toggle Node.](/files/lhFmW2GwuGW9ori45UDN)

The **Toggle Node** holds a **Boolean** *state*, which alternates between *true* and *false* every time the input **Pulse** is triggered. This can be thought of as a light switch, which alternates a light bulb's state between being *on* and *off*.

[**Scope**](/incari-studio/2022.2/toolbox/overview.md#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Toggle Node Attributes.](/files/v2BjItKqWfDqaKWreCBk)

| Attribute | Type     | Description                                                         |
| --------- | -------- | ------------------------------------------------------------------- |
| `Value`   | **Bool** | The default *value*/*state* of the **Node**, before it is executed. |

## Inputs

| Input             | Type      | Description                                                           |
| ----------------- | --------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse** | A standard input **Pulse**, to trigger the execution of the **Node**. |

## 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. |
| `Is On`            | **Bool**  | Whether or not the *value*/*state* of the **Node** is currently *true*.                                                                |

## External Links

* [*State*](https://www.techopedia.com/definition/696/state-computer-science) on Technopedia.
