Take every Nth Item Based on Sub List

Hi,

I have a list of 4 sublists. I’d like to take filter out every sub list based on the grouping. So for instance, the first sublist I’d like to take every 2nd item, and the 2nd sublist I’d like to take every 3rd item and so forth. What would be a good approach?

I dont understand your actual problem, but i tried to solve it.
you can modify the script as per your requirement.

@honeyjain619 not quite. I’d like to keep the sub-lists but cull them separately based on their rank parent index. So something like this:

Thanks,

Hello @sascari
Something like this

I got a similar solution, but your method is much more elegant. Could you explain what the % node does in this case? Thanks!

“%” is not exactly division value but it will give you the reminder after division.

1 Like

Very elegant method. Thanks!

1 Like

for learning purpose, i wanted to know the alternate method for solving this problem, So if possible, can you please share your approach to solve this problem.

I will once I refine it a bit more. Still running into some issues.

Home.dyn (7.8 KB)

1 Like