# Get All Rooms that Contain Parameter Value of

**URL:** <https://forum.dynamobim.com/t/get-all-rooms-that-contain-parameter-value-of/105244>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 18, 2024, 9:48pm UTC](https://forum.dynamobim.com/t/get-all-rooms-that-contain-parameter-value-of/105244 "2024-10-18T21:48:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evargas7QQQV](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@evargas7QQQV](https://forum.dynamobim.com/u/evargas7QQQV)\
**Post date:** [October 18, 2024, 9:48pm UTC](https://forum.dynamobim.com/t/get-all-rooms-that-contain-parameter-value-of/105244/1 "2024-10-18T21:48:14Z")

</div>

I want to generate a new list of room elements based on them having their room parameter ‘Department’ set. In this example, one room is set to Corridor and the other Storage.

 ![GetAllRoomsWithParameterDepartmentValue](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/8/e82b2e881d30a0a5e1d0dc0c70d1036cf8bd9377.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 18, 2024, 9:49pm UTC](https://forum.dynamobim.com/t/get-all-rooms-that-contain-parameter-value-of/105244/2 "2024-10-18T21:49:30Z")

</div>

Sounds like you just want to filter the rooms based on having a value. You can do that with `FilterByBoolMask` and a conditional test.

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [October 20, 2024, 7:57pm UTC](https://forum.dynamobim.com/t/get-all-rooms-that-contain-parameter-value-of/105244/3 "2024-10-20T19:57:33Z")

</div>

Or `GroupByKey`.

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [October 21, 2024, 7:35am UTC](https://forum.dynamobim.com/t/get-all-rooms-that-contain-parameter-value-of/105244/4 "2024-10-21T07:35:41Z")

</div>

or `List.GroupByFunction`
