# Append a list in UR script

**URL:** <https://forum.universal-robots.com/t/append-a-list-in-ur-script/13345>\
**Category:** URScript\
**Created:** [April 1, 2021, 8:25am UTC](https://forum.universal-robots.com/t/append-a-list-in-ur-script/13345 "2021-04-01T08:25:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slon](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@slon](https://forum.universal-robots.com/u/slon)\
**Post date:** [April 1, 2021, 8:25am UTC](https://forum.universal-robots.com/t/append-a-list-in-ur-script/13345/1 "2021-04-01T08:25:14Z")

</div>

Hello, the title says it all - is there a way to append a list in UR script? Add a new member to it after it has already been created? Or is it at least possible to declare an array with size determined by a variable? I thought i could kinda do it with integer\_to\_binary\_list but it always declares an array of size 32

---

<div class="post-metadata">

**Author:** ![terryc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/terryc/32/3006_2.png) [@terryc](https://forum.universal-robots.com/u/terryc)\
**Post date:** [April 1, 2021, 7:50pm UTC](https://forum.universal-robots.com/t/append-a-list-in-ur-script/13345/2 "2021-04-01T19:50:27Z")

</div>

Hi Peter,

Welcome to the madness. Hopefully we get this feature soon. See below:

> [@URScript initialise array of given length](https://forum.universal-robots.com/t/urscript-initialise-array-of-given-length/6869):
>
> I want to create a function in my installation node that gets a string of comma separated values and returns them as an array. The only thing I’m missing is how to initialise an array of unknown size. Like when on any programming language you do something like new\_array[10] Is this at all possible on URScripts?

---

<div class="post-metadata">

**Author:** ![mbush](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mbush/32/76_2.png) [@mbush](https://forum.universal-robots.com/u/mbush)\
**Post date:** [April 3, 2021, 7:49pm UTC](https://forum.universal-robots.com/t/append-a-list-in-ur-script/13345/3 "2021-04-03T19:49:03Z")

</div>

We have a script we use that allows you to generate scripts of a size with a type already populated.

You can read more [here](https://forum.universal-robots.com/t/how-can-i-create-an-dynamic-array-in-urscript-or-is-it-possible-to-create/8695/4). If you’re interested ping me and I can get you the code.

---

<div class="post-metadata">

**Author:** ![slon](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@slon](https://forum.universal-robots.com/u/slon)\
**Post date:** [April 6, 2021, 5:18am UTC](https://forum.universal-robots.com/t/append-a-list-in-ur-script/13345/4 "2021-04-06T05:18:22Z")

</div>

Thanks for the info, I hope this gets implemented soon.
