Create list using List.AddItemToEnd

Hi all!!
I create list using List.AddItemToEnd and I want to get list [ [0] , [-0.17,0.17] ,[-0.22,0.22] , [-0.25] [-0.25] ]
but I can’t achieve the result by changing the levels
Does anyone know why?

Did you try setting item level at @1 too?

yes

I’ll behind a PC in like a hour.
I’ll have a look then.
But i think a solution can be to just use the
List.Create node instead of the List.AddItemToEnd as that might just add a single item to the end of a list(?).

1 Like

Would this work for you? I don’t think ListAddItemToEnd is the way to go.

2 Likes


hi is this what you’re looking for?

@vaaSNLDZ I saw the :white_heart:. Is it also the solution? If so please mark as solution too.

Due to how that node works, you’ll need to flatten the result one way or another. The node adds a single item to an existing list. It seems like you want both items added to the list while maintaining the same list levels. That’s not possible with the structure that you have (without some additional processing, like flattening the structure).

2 Likes

I think you just want a List.Join node, but am not entirely clear on what the desired structure is… may have to flatten before joining as @Nick_Boyts indicated.

2 Likes

Hello,
A possible way

Cordially
christian.stan

1 Like

I guess this is a prime example of how there are multiple solutions to a problem. :smiley: :+1:

1 Like

this is what I really needed
Thank you!!

1 Like

Though i do think @jacob.small suggested the best solution.

I kinda overlooked that node.

image

1 Like