# Index Switch

## Overview

![The Index Switch Node.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-00bae59f8e4b56325ecdaa5d9e6417c520882287%2Findexswitchupdatednode.png?alt=media)

The **Index Switch Node** takes an **Int** as input and compares it to the value of`Index: value`, returning *true* or *false*. This could be used, for example, for enabling or disabling features in a *User Interface* based on the output of a function.

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

## Attributes

![The Index Switch Node Attributes.](https://2561100106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff6JZovzOqBctA4C1o76u%2Fuploads%2Fgit-blob-4e6c6bc0dcce0000ede7122fb320d62f45f7ccd5%2Findexswitchattributes.png?alt=media)

| Attribute       | Type          | Description                                                                                                                                  |
| --------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `Default Index` | **Drop-down** | The **Index** that corresponds to `Default`.                                                                                                 |
| `Outputs`       | **Drop-down** | The number of **Index** outputs. In the sample image there are two `Outputs`, which correspond to `Index: 0` and `Index: 1` on the **Node**. |

## Inputs

| Input             | Type      | Description                                                           |
| ----------------- | --------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse** | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `Index`           | **Int**   | The **Integer** to be compared.                                       |

## 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. |
| `Index: [n]`       | **Bool**  | The **Index** that is being compared to the **Integer** **Input**.                                                                     |
| `Default`          | **Bool**  | The default **Index** which is set in **Inputs**.                                                                                      |

## See Also

* [**Switch**](https://docs.incari.com/incari-studio/2023.2/toolbox/flow-control/switch)
