# Toggle Boolean Variable

![](/files/A2EHbEyc87Y84f0bZZlT)

## Description

Inverts the value of a Boolean variable. Equivalent to calling Get Boolean Variable and then calling Set Boolean Variable basd on the result. i.e., if it was FALSE, set it to TRUE. If it was TRUE, set it to FALSE.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node Executes a function directly in the node string.

## Inputs

| Input      | Type   | Required | Description                                                  |
| ---------- | ------ | -------- | ------------------------------------------------------------ |
| Identifier | String | Yes      | Must match the Identifier of the Boolean Variable to toggle. |
| Scope      | Scope  | Yes      | Must match the scope of the Boolean Variable to toggle.      |
| Object     | Object | No       | Only used if Scope is Object.                                |

## Outputs

| Output | Type | Description |
| ------ | ---- | ----------- |
| (none) | N/A  | N/A         |

\
\
**Contributors**

AddiCt3d 2CHa0s


---

# 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://wiki.thescriptersguild.com/scripting/nodes/logic/toggle-boolean-variable.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.
