Getting items from nested list


Hi;
I want to get last two items from LinkElement.Faces I tried in 1st case, using one element and successfully to get last two items, but in case number 2, using more than element getting null items (nested list). hoping anyone help me to get correct code to solve.

@mohamed.farag622DK ,

check out your list depth! :wink: or flatten

2 Likes

Thanks Draxl but the problem is still occurred!

1 Like

@mohamed.farag622DK ,

flatten ! you need it… like a Diva a face-lift!

1 Like

Hello
Reading this document is clear, I strongly recommend it to you.
I read it regularly
(without wanting to sound presumptuous)

Cordially
christian.stan

3 Likes

In order to get the items in each list you’ll need to use lacing or list levels. The code block you’re using is more of a shorthand than an actual function, so it won’t benefit from lacing or list levels. Use the actual GetItemAtIndex node instead.

2 Likes