# Toggle

## Overview

![The Toggle Node.](https://4267723012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOEts3pBau6LMamSYhGZp%2Fuploads%2Fgit-blob-2596abc1b07d0e702ed52cd30aa376469b109a22%2Ftoggleupdatedimage.png?alt=media)

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**](https://docs.incari.com/incari-studio/2022.2/overview#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

![The Toggle Node Attributes.](https://4267723012-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOEts3pBau6LMamSYhGZp%2Fuploads%2Fgit-blob-47f74d560c6abe8ce150e25bbcfc101eac0954cd%2Ftoggleattributes.png?alt=media)

| 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.
