# What if you have more than 1 if statement?

**URL:** <https://forum.dynamobim.com/t/what-if-you-have-more-than-1-if-statement/13369>\
**Category:** Revit\
**Created:** [July 21, 2017, 3:14pm UTC](https://forum.dynamobim.com/t/what-if-you-have-more-than-1-if-statement/13369 "2017-07-21T15:14:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 21, 2017, 4:50pm UTC](https://forum.dynamobim.com/t/what-if-you-have-more-than-1-if-statement/13369/2 "2017-07-21T16:50:21Z")

</div>

Try this code block:

```
a==6?
	"Family 1 Goes Here":
	a==2?
		"Family 2 Goes Here":
		"Family 3 Goes Here";

```

You can go as deep as you like, and remove the quotes to use different families which will become inputs to the node instead of strings.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/b/0bd27fd016558a35625c5ea126168eb2a31cf37a.PNG)

---

_[View the full topic](https://forum.dynamobim.com/t/what-if-you-have-more-than-1-if-statement/13369)._
