# IF Node - Strange Problem

**URL:** <https://forum.dynamobim.com/t/if-node-strange-problem/66972>\
**Category:** Revit\
**Created:** [August 9, 2021, 2:19pm UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972 "2021-08-09T14:19:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvusal](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@kvusal](https://forum.dynamobim.com/u/kvusal)\
**Post date:** [August 9, 2021, 2:19pm UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972/1 "2021-08-09T14:19:49Z")

</div>

Dear Experts,  
There is simple task which is strangly not working properly. Result need to be “” but it makes list of “”.  
[Function.dyn](https://forum.dynamobim.com/uploads/short-url/b7UZTqhIds1CxeUBQeZb9Gyg9CY.dyn) (8.0 KB)

 ![Function](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/a/9a26d4a23c6d95d83a0a4aaf4b590d801a1c4b51.png)  
How can we overcome this problem. Thanks.

---

<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:** [August 9, 2021, 2:54pm UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972/2 "2021-08-09T14:54:06Z")

</div>

Please search the forums for similar issues before posting a new problem. This question gets asked all the time.

---

<div class="post-metadata">

**Author:** ![kvusal](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@kvusal](https://forum.dynamobim.com/u/kvusal)\
**Post date:** [August 9, 2021, 4:09pm UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972/3 "2021-08-09T16:09:18Z")

</div>

Thanks Nick. Problem is I could not found anything about this issue. May be not correct search keywords ☹

---

<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:** [August 9, 2021, 4:36pm UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972/4 "2021-08-09T16:36:48Z")

</div>

You can start here. Let us know if you have any questions.

> [@If Node only passing the first entry of a list, function working as expected, just losing data](https://forum.dynamobim.com/t/if-node-only-passing-the-first-entry-of-a-list-function-working-as-expected-just-losing-data/53154):
>
> I have a pretty large dynamo script I’ve been working on for a couple of months. I’m stuck with an issue where an IF Node is only passing the first item on the list being fed to FALSE. I have 8 different lists compiling to my ‘Write to EXCEL’, and recent changes is causing me headaches! I also need the row written horizontally, which seems to be giving me another layer of issues. I don’t want to use any custom nodes at this point, there’s none in the entire script, and I see no reason the O…

---

<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:** [August 9, 2021, 5:02pm UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972/5 "2021-08-09T17:02:57Z")

</div>

Just in case it helps:

```auto
indx = test ? 0 : 1;
results = [ifTrue, ifFalse] [indx];

```

---

<div class="post-metadata">

**Author:** ![kvusal](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@kvusal](https://forum.dynamobim.com/u/kvusal)\
**Post date:** [August 10, 2021, 7:33am UTC](https://forum.dynamobim.com/t/if-node-strange-problem/66972/6 "2021-08-10T07:33:41Z")

</div>

Thanks a lot.
