# If node in dynamo seems not working right

**URL:** <https://forum.dynamobim.com/t/if-node-in-dynamo-seems-not-working-right/35059>\
**Category:** Revit\
**Created:** [April 20, 2019, 10:39am UTC](https://forum.dynamobim.com/t/if-node-in-dynamo-seems-not-working-right/35059 "2019-04-20T10:39:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![architectcoding](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/architectcoding/32/105118_2.png) [@architectcoding](https://forum.dynamobim.com/u/architectcoding)\
**Post date:** [April 20, 2019, 11:07am UTC](https://forum.dynamobim.com/t/if-node-in-dynamo-seems-not-working-right/35059/2 "2019-04-20T11:07:10Z")

</div>

The if node doesn´t work that well:

> [@IF node broken?](https://forum.dynamobim.com/t/if-node-broken/7971/2):
>
> It’s caused by the lacing. The if node has shortes lacing as default, and it can’t be changed. Try the scopif or a simple python script. if IN[0]: OUT = IN[1] else: OUT = IN[2]

Try this python script:

```
bool = IN[0]
result_true = IN[1]
result_false = IN[2]
output = result_false
if bool:
    output = result_true
OUT = output

```

---

_[View the full topic](https://forum.dynamobim.com/t/if-node-in-dynamo-seems-not-working-right/35059)._
