Set parameters to rooms based on a condition


I am new to Dynamo, so this is gonna be a simple question:

I’d like Dynamo to look att my Revit file, collect all rooms and based on the room’s name set a value to one of parameters.

I could collect rooms with lunchbox but then I lack knowledge of setting parameter based on condition.

Something like this:

Start --> Collect rooms --> If name == WC then --> set.parameter Vico = 225

Else if Name == Lobby then --> set.parameter Vico = 212

Else if …

Thanks in advance




Just use a FilterByBoolMask command to separate the rooms by their names or alternatively you could group by key (family name) and apply a parameter that way.Rooms

Thank you so much.
It worked.