# Changing Family Based on Parameter Value

**URL:** <https://forum.dynamobim.com/t/changing-family-based-on-parameter-value/16147>\
**Category:** Uncategorized\
**Created:** [November 1, 2017, 2:07pm UTC](https://forum.dynamobim.com/t/changing-family-based-on-parameter-value/16147 "2017-11-01T14:07:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [November 3, 2017, 10:00pm UTC](https://forum.dynamobim.com/t/changing-family-based-on-parameter-value/16147/7 "2017-11-03T22:00:49Z")

</div>

> [@robertsb2010](#):
>
> what exactly that code block is doing?

That code block holds a conditional statement (similar function as an _if_ node), see here:  
[http://dynamoprimer.com/en/07\_Code-Block/7-3\_shorthand.html](http://dynamoprimer.com/en/07_Code-Block/7-3_shorthand.html)

This conversation could also bring additional clues:

> [@Replacing a number of selected elements with another family type keeping original dimensions](https://forum.dynamobim.com/t/replacing-a-number-of-selected-elements-with-another-family-type-keeping-original-dimensions/8315/2):
>

---

_[View the full topic](https://forum.dynamobim.com/t/changing-family-based-on-parameter-value/16147)._
