Get rid of empty sublists

For some reason my List.FilterByBoolMask generates an ‘Empty List’ at the beginning.
I want to get rid of it but keep al the sublists and their list levels.

I’ve tried for many hours with flatten, clean list, clear list and remove item at index but it seems like I can’t get anything the work…

As in the watch window on the bottom right, I want to remove the empty list on top and keep all the rest…

@Sean_Fruin can you elaborate some more?
I replicated your proposal but I still get an empty list at the top?
I want to remove that list and keep everything else…


@Bjorn_Keulemans1 thanks, this finally works!

@Laura_POLO there a bunch of ways to clean the list. The key is to watch watching the levels!

1 Like