> For the complete documentation index, see [llms.txt](https://docs.cosmocloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cosmocloud.io/flow-builder/node-types/variable-nodes/arrays/extend-array.md).

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