# Modify a List

**URL:** <https://forum.dynamobim.com/t/modify-a-list/59851>\
**Category:** Lists-Logic\
**Created:** [January 28, 2021, 7:12pm UTC](https://forum.dynamobim.com/t/modify-a-list/59851 "2021-01-28T19:12:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ricksr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ricksr/32/110533_2.png) [@ricksr](https://forum.dynamobim.com/u/ricksr)\
**Post date:** [January 28, 2021, 7:12pm UTC](https://forum.dynamobim.com/t/modify-a-list/59851/1 "2021-01-28T19:12:07Z")

</div>

I am new to Dynamo. I have a list I have generated using a specific node. It’s a list of numbers - 1 2 3 4 5 6…etc. Is there a way to create a script that takes that list, adds a specified number, such as 1, to each number in the list, and create a new list - so the new list would now read 2 3 4 5 6 7…etc?

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [January 28, 2021, 7:33pm UTC](https://forum.dynamobim.com/t/modify-a-list/59851/2 "2021-01-28T19:33:21Z")

</div>

Hi @ricksr !  
Take a look at the node library, Math tab, then Operators, you will find the **+** node.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 28, 2021, 7:53pm UTC](https://forum.dynamobim.com/t/modify-a-list/59851/3 "2021-01-28T19:53:22Z")

</div>

Check out the [Dynamo Primer](https://primer.dynamobim.org/). It covers all the basics and walks you through examples. Dynamo is automatically iterative, so there’s no need to require additional loops to apply a function to all values in a list.

---

<div class="post-metadata">

**Author:** ![ricksr](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ricksr/32/110533_2.png) [@ricksr](https://forum.dynamobim.com/u/ricksr)\
**Post date:** [January 28, 2021, 9:47pm UTC](https://forum.dynamobim.com/t/modify-a-list/59851/4 "2021-01-28T21:47:28Z")

</div>

Thank you both for pointing me in the right direction. I do appreciate it
