I will only have 4 list like shown that each list have point data at unique index (point data wont share the same index in list) I want to get the point data into one list that the point data ramain at it index.
You can use nested conditionals to check each list one by one. If the value is 0, move on to the next list/conditional, else return the value.
List.RemoveIfNot and List.Flatten should work. In design script something like this: List.RemoveIfNot(List.Flatten(lst,-1), "Point");
Hi @sophanith.nut,
Please try discussing with @jacob.small first, as that might be the easiest way to solve it. Otherwise, below is another approach you could consider.
I’m pretty new to dynamo. I’m not sure how to node like what you describe.
wow thank you so much. this works. But I’m so confuse with the logic of transpose. Thank you.
Yeah I was just wondering why they’ve added transpose too.
A flatten node after List.Create then plug that into the 'List.RemoveIfNot" would be better.
I understand them now. The transpose part is for keeping the index of the data.
Hi @Alien,
You are correct, but he is trying to group the data by index value. The image below is an example of what he has tried so far.