Convert number to upcounting list

Hello,

So I have a number (for example 5) and I want to generate a list with that number.
The list at the end should look as following
1
2
3
4
5

It seems like a pretty easy feat, however I am unable to come to a solution, can someone help me?
Thanks in advance!

1…n in a codeblock? Where n is your number

2 Likes

As @Marcel_Rijsmus mentioned, very easy in a Code Block, or alternatively you can use the Range node.

3 Likes

can do what solamour suggest. if you want the imput value to be diffrent the 5 write 1…x

x will be an input and you can input any value