Filterring room parameters by level and exporting to Excel

HI, I am working on a project with multiple levels, I want to export each level room parameter into an excel file. Accordingly, I am trying to build a script. After filtering the level and room names the script showing as Empty List.

Would appreciate some help, or an alternative way to do what I am asking.

Thank you.!

Start by looking in this forum and in the primer how FilterByBoolean works.

You get all your Rooms, get their Levels, check those for the level you want and use that list of yes/no as your mask while filtering the ORIGINAL list of Rooms.

But tbh, just export the whole thing and use tables in Excel to filter this kind of stuff. Way easier.