# Index Switch

## Overview

![The Index Switch Node.](/files/VE4HqK5ssYzdqpaHsEOG)

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

## Attributes

![The Index Switch Node Attributes.](/files/cFeZLVXPUEkSPoOSpA89)

| 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**](/incari-studio/2023.1/toolbox/flow-control/switch.md)


---

# 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/indexswitch.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.
