> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/el_collections/el_addtoarray.md).

# Add to array

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(181\).png?alt=media)

Element that adds a new element to the collection.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-27a38e8b700a2ec221ea1b906129c9183391c0b6%2F1%20\(37\).png?alt=media)

Properties

\- Collection\*: \[IEnumerable\<T>] Collection to which an element is to be added

\- Variable\*: \[T] Variable added to the collection
