Write values in a list

Morning,
I have a list with 36 values and i like to complete it with zeros to get a list with 60 values.
Could you help me?

Regards.

@FRAN1972 List.Join node as a start :slight_smile:

1 Like

2 Likes

fast responses

1 Like

Thanks a lot!
And if the index of the list changes in ever iteration?
Regards.

Hi @FRAN1972 ,

What Index do you mean exactly?
If you mean the 60 you could implement something like this to also account for multiple lists (with changing lengths) :slight_smile:

PS: See the list level on the List.Count node, that is really important here. This is done to count the amount of items in the sublists instead of the top list.

1 Like

I mean that the list could be 36 values and in the next iteration could be 10 ie. The vaule 60 is the same always.
Regards

I see, my post above works with one amount aswell, you could just replace the list/ the “Total” in the Code Block with a number. :slight_smile:

1 Like

Thanks so much.