# Lists + If Statements

**URL:** <https://forum.dynamobim.com/t/lists-if-statements/69967>\
**Category:** Uncategorized\
**Created:** [November 3, 2021, 2:29pm UTC](https://forum.dynamobim.com/t/lists-if-statements/69967 "2021-11-03T14:29:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![EdsonMatt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/edsonmatt/32/124725_2.png) [@EdsonMatt](https://forum.dynamobim.com/u/EdsonMatt)\
**Post date:** [November 3, 2021, 2:37pm UTC](https://forum.dynamobim.com/t/lists-if-statements/69967/2 "2021-11-03T14:37:01Z")

</div>

Hi @ruthparr

Try this:

> [@Fail to use bool to extract String](https://forum.dynamobim.com/t/fail-to-use-bool-to-extract-string/69765/2):
>
> The if node will always use shortest lacing unless you have the newer version which exposes the lacing controls. One item in the true list, no items in the second list, therefore the most you will get is no items. Can be frustrating at first. Instead you can use a code block like this: indx = test ? 0 : 1; returnedValue = [trueVals, falseVals][indx];

---

_[View the full topic](https://forum.dynamobim.com/t/lists-if-statements/69967)._
