Comparing sublists separately to other lists items

Yes, I figured it out.
It is indeed better to filter on something else so I changed the code block to work with the ID of the room and this works perfect now!

The end goal of this script is to create floors by room (multiple rooms at once over multiple levels) taking in account the ins and outs of windows and doors…
There is already a post on this forum about my major script so I’ll post the end result there (this was the last hurdle).