# Extend array

The **Extend array** node is  used to extend values in an array

### Properties Panel

#### General

<table data-full-width="false"><thead><tr><th width="244">Field</th><th>Description</th><th>Required</th><th data-hidden>Default</th></tr></thead><tbody><tr><td>Node name</td><td><a href="/pages/jJ1qO0Ju8d7VFyPB2Jy3"><mark style="color:blue;"><strong>Checkout Node name</strong></mark></a></td><td>true</td><td>_</td></tr><tr><td>Variable name</td><td>Name of array to extend values in</td><td>true</td><td>_</td></tr><tr><td>Values to extend</td><td>Value to be extended in given array</td><td>true</td><td></td></tr></tbody></table>

### Returns

This node does not return any value, but sets a variable with your provided `<name>` in the flow context.

### Example

Let's assume we have two variables declared in our flow&#x20;

* val\_one = `[1, 2, 3, 4]`
* val\_two = \[`5, 6, 7, 8]`

Now to extend values of **val\_two** in **val\_one** we have to set&#x20;

* Variable name  = `$.variables.val_one`
* Values to extend = `$.variables.val_two`

This would change variables as&#x20;

* val\_one = `[1,2,3,4,5,6,7,8]` (changes the original value)
* val\_two = `[5,6,7,8]` (stays the same)


---

# 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.cosmocloud.io/flow-builder/node-types/variable-nodes/arrays/extend-array.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.
