> For the complete documentation index, see [llms.txt](https://docs.incari.com/incari-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.incari.com/incari-studio/2.0/toolbox/array/set-array-element.md).

# Set Array Element

## Overview

![The Set Array Element Node.](/files/-MIxaUGQj1kFINfYUetn)

**Set Array Element** updates element/s in an **Array** to new values.

## Attributes

### Inputs

#### Inputs

The number of **Input Element**/s you wish to add to the **Attribute section**. The **Input Element**/s are used to update elements in the **Array** to new values. Each **Input Element** has the following format:

| Attribute       | Type                                          | Description                                                                                                        |
| --------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `Index`         | **Int**                                       | The default `Index` of the element you wish to update if no value is provided in the `Index` **Input** **Socket**. |
| `Data Type`     | **Drop-down**                                 | The `Data Type` of the `Index` element you wish to update.                                                         |
| `Default Value` | *Defined in the* `Data Type` ***Attribute***. | The element whose `Index` is specified in the `Index` **Attribute** will be updated with this value.               |

## Inputs

| Input             | Type                                          | Description                                                                                                            |
| ----------------- | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                     | A standard **Input Pulse**, to trigger the execution of the **Node**.                                                  |
| `Àrray`           | **Array**                                     | An **Array** whose element/s you wish to update.                                                                       |
| `Index`           | **Int**                                       | The `Index` of the element you wish to update.                                                                         |
| `Value`           | *Defined in the* `Data Type` ***Attribute***. | An **Input** value that is used to replace the element whose *index* is specified in the `Index` **Input** **Socket**. |

## 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. |
| `Array`            | **Array** | An **Output** **Array** whose element/s have been replaced with the desired values.                                                    |

## Eg Usage

![The Set Array Element Node Usage.](https://github.com/cgi-studio-gmbh/incari-doc/tree/66656c2442958de634bc73f77b533a03f83df0fb/.gitbook/assets/toolbox/array/set-array-element-Usage.png)

## See Also

* [**Array Value**](/incari-studio/2.0/toolbox/array/array-value.md)
* [**Pop Array Element**](/incari-studio/2.0/toolbox/array/pop-array-element.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.incari.com/incari-studio/2.0/toolbox/array/set-array-element.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
