# Set Current Index

## Overview

![The Set Current Index Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-7d9efcaddc486a75a790c07c3ea29fcb8bf8ad80%2Fsetcurrentindexnode20241.png?alt=media)

**Set Current Index** selects an entry item by using its index. It accepts a **List** **Object** and an `Index` value and selects an entry item corresponding to the `Index` value.

The index count starts from zero, which means that the `Index` of the last entry item of the **List** **Object** is equal to the total number of entry items minus one ("sum of entries" - 1). This follows from array-based indexing where the index of the first entry is 0.

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

## Attributes

![The Set Current Index Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-adc73119d4890d995c2dc808636b208e27ff3c9b%2Fnode-set-current-index-attr.png?alt=media)

### Object

| Attribute | Type         | Description                                                                                                                                             |
| --------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Object`  | **ObjectID** | This represents the **List** **Object**, from which an entry item can be selected by its `Index`, if one is not provided in the `Object ID` **Socket**. |

### Input

| Attribute | Type    | Description                                                                        |
| --------- | ------- | ---------------------------------------------------------------------------------- |
| `Index`   | **Int** | The default `Index` value if no value is provided to the input `Index` **Socket**. |

## Inputs

| Input             | Type         | Description                                                                          |
| ----------------- | ------------ | ------------------------------------------------------------------------------------ |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.                |
| `Object ID`       | **ObjectID** | The **List** **Object** from which an entry item can be selected by using its index. |
| `Index`           | **Int**      | The index of the entry item you wish to select.                                      |

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

## See Also

* [**List**](https://github.com/cgi-studio-gmbh/incari-doc/blob/2025.1/objects-and-types/scene-objects/list-widget.md)
* [**Generate List**](https://docs.incari.com/incari-studio/toolbox/incari/list/generate-list)

## External Links

* [*Array Indexing*](https://en.wikipedia.org/wiki/Array_data_structure) on Wikipedia.
* [*Index Mapping*](https://en.wikipedia.org/wiki/Index_mapping) on Wikipedia.
