Modify a List

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?

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

1 Like

Check out the Dynamo Primer. 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.

1 Like

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