Hello everyone, Is there any node or python script to get level number of list?
Do you mean the level in the list or the item at that particular index?
If you only want item with index 5, you can use the node List.GetItemAtIndex.
I want to get level numbers of list, that contains null value.
The term ‘level’ is used to refer to the depht inside the list tree, so at level 2 you get all lists and at level 1 you get all single items.
If you want the lists that contains null values, there are multiple options. You can check any item in the lists to find out if it is null (Object.IsNull node), or use the List.TrueForAny or List.TrueForAll with the Object.IsNull and the list to find if any or all items in the list are null. You get a list of true and false values which you can use as mask to find the items you need.
It’s a bit complex if you are not very experienced with Dynamo, but once you understand, it is logical.
