# Toggle

## Overview

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

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/2023.1/toolbox/overview.md#scopes): **Project**, **Scene**, **Function**, **Prefab**.

## Attributes

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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.incari.com/incari-studio/2023.1/toolbox/flow-control/toggle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
