# Using { If } Node

**URL:** <https://forum.dynamobim.com/t/using-if-node/74021>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [March 7, 2022, 10:56am UTC](https://forum.dynamobim.com/t/using-if-node/74021 "2022-03-07T10:56:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffrey.blanco](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jeffrey.blanco](https://forum.dynamobim.com/u/jeffrey.blanco)\
**Post date:** [March 7, 2022, 10:56am UTC](https://forum.dynamobim.com/t/using-if-node/74021/1 "2022-03-07T10:56:17Z")

</div>

Hi Everyone! I’m just thinking if I can use “If” node in this simple script. I’ve been practicing and understanding Dynamo, Hope someone can answer me. Thank you! 🙂

 ![Screenshot 2022-03-07 185217](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/0/00f67c1b9462543ceb6ddfac1bde0f787ba177b4.jpeg)  
 ![Screenshot 2022-03-07 185237](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f8044c387a6b22a4f3557e861b74d50a5d5322c7.jpeg)

---

<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:** [March 7, 2022, 11:11am UTC](https://forum.dynamobim.com/t/using-if-node/74021/2 "2022-03-07T11:11:14Z")

</div>

Where here do you want to use “If”

---

<div class="post-metadata">

**Author:** ![jasonlkw](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jasonlkw/32/191737_2.png) [@jasonlkw](https://forum.dynamobim.com/u/jasonlkw)\
**Post date:** [March 7, 2022, 12:39pm UTC](https://forum.dynamobim.com/t/using-if-node/74021/3 "2022-03-07T12:39:10Z")

</div>

You’d have to feed the conditional statement with a bool list.  
Then, what output becomes of true and what of false. See below.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/7/47e771bd62e875098b045bc97709e969a54827c1.png)

I find that using designscript for this is a lot easier.  
solamour gave a really good tip when i’ve started out.  
check out this link : [IF Statement AND/OR - #11 by solamour](https://forum.dynamobim.com/t/if-statement-and-or/18135/11)

---

<div class="post-metadata">

**Author:** ![jeffrey.blanco](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@jeffrey.blanco](https://forum.dynamobim.com/u/jeffrey.blanco)\
**Post date:** [March 7, 2022, 1:12pm UTC](https://forum.dynamobim.com/t/using-if-node/74021/4 "2022-03-07T13:12:49Z")

</div>

I want to remove the list and use “If” node.

---

<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:** [March 7, 2022, 2:34pm UTC](https://forum.dynamobim.com/t/using-if-node/74021/5 "2022-03-07T14:34:57Z")

</div>

@jeffrey.blanco This has already been answered in your previous topic. Please refrain from posting the same question more than once.

> [@Editing Parameter Value](https://forum.dynamobim.com/t/editing-parameter-value/73357/8):
>
> Doing it manually (picking the elements to filter by index) isn’t very effective. You’d have to modify your graph every time the lsit changes. I’d suggest using Element.GetParameterValueByName instead of Parameter.ParameterByName. ParameterByName returns the parameter element whereas GetParameterValueByName will return just the value. You can then use a conditional statement or String.Replace node to replace all ‘E’ values with ‘N’. This will work for any list of values in any order. …
