Omit Sub List from List of Lists

I am wondering what the basic approach to filtering a list of lists. Some of the sublists have a room name that starts with BM.

I want to make a new list that does not include sublist with BM rooms. Like this conceptually:

if sublist contains "BM"
then exclude sublist
else
end

Tried several things but I am too new to resolve this.

Thanks

Daniel

Hi @dfglazer

String.Contains node will get you started. You can add “RM” string value to search for. It will give you booleans list and then finally you use filter by bool mask node to filter. Make sure you set lacing to longest for String.Contains node as your list contains sublists.

Like this:

Thank you for taking a look, :slight_smile: using the web as it was intended.

Following-up:
What I am trying to do is omit the entire sublist if a specific index (#4) in the sublist contains a specific value (NULL). (a slight change from when I was looking for the string “BM”).

Why do I need to do this? It will eliminate rooms that are not in the model from the list of room properties since node #4 is room area which is null for rooms that are not placed.

New question, please start a new thread.