Remove a sublist if [0] = null

Hi,

I’m working on a lists and sublist-logic problem :

In my project I have 1 list with 3 types of sublists

Type 1 :

Type 2 :

Type 3 :

(You will see that all the [0] are titles, and I will transpose those lists to make columns and export it on excel…)

I want to erase all the sublists like Type 3, and export just sublists with at least a title not null.

I tried to use some nodes.filter in Dynamo (Listfilter, byboolmask, ObjectisNull…)
I tried to make something like that : Filter List (Thx to Nick Boyts and Daniel Petrin)
I tried to make it with a simple python.node, but I don’t really know how to manage the sublists in a good way, and remove it (not just clear it)…

If you have an idea, it will be great :slight_smile:

1 Like

hi @jav.frs

you can try to get the first item of every list, determinate if is null and filter with List.FilterByBoolMask

3 Likes

Yes it works.

Thank you @Mauro !