How can create a list of length n?

Basically i want to create a list with ‘n’ elements. how can i do this?

Hi

we can create a list variable in variable panel
By browsing type as
System.Collections.Generic.List(of String)
With default value as
New list(of String)

With this you can add N number of items to your list using Add to collections activity

If you know the value while defining itself then mention this in default value

New List(of String) from {“value_1”, “value_2”, “value_3”}

Where I know three values to be defined while creating the variable itself
But still you can add any number of values to a list variable even after declaration

Cheers @Rowley101

grafik

depending on how you want get the list prepopulated we can adopt

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.