# Need Help With List Logic

**URL:** <https://forum.dynamobim.com/t/need-help-with-list-logic/56061>\
**Category:** Lists-Logic\
**Tags:** excel, dynamo\
**Created:** [October 10, 2020, 4:58pm UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061 "2020-10-10T16:58:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 10, 2020, 4:58pm UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061/1 "2020-10-10T16:58:35Z")

</div>

I will try to be as concise as possible here with my problem. I am working on a file containing to separate types of lists.

1. The first list is a list of strings, and the second list contains 9 items of data.

2. The list with 9 different items is such that the data needs to be transposed before it can be used effectively. The list of strings does not need transposed.

3. My problem is that I would like to combine the two such that the combined list shows "0-List, 1-List, 2-List, etc. However, as you can see on the far right, the combined list has an extra layer of nesting (1-List has a “nested” 0-List, 1-List, 2-List, etc).

4. What steps do I need to take to remove that extra nesting of lists? Hopefully I have explained my situation clearly enough.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9e3fa5b4272e31466208e36014f056a104413d50.png)

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 10, 2020, 6:21pm UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061/2 "2020-10-10T18:21:33Z")

</div>

Try DesignScript

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 10, 2020, 7:25pm UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061/3 "2020-10-10T19:25:22Z")

</div>

I should have noted I am using Civil3D. I don’t believe there is a DesignScript Node unless its in a package I need to download.

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [October 10, 2020, 8:33pm UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061/4 "2020-10-10T20:33:58Z")

</div>

@hestingjj Try using List.AddItemToFront or List.Join instead of List.Create.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/5/857e0f55ac8fe50f36ed4890a9a9f354f47f3e6b.png)

---

<div class="post-metadata">

**Author:** ![hestingjj](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@hestingjj](https://forum.dynamobim.com/u/hestingjj)\
**Post date:** [October 11, 2020, 12:34am UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061/5 "2020-10-11T00:34:00Z")

</div>

This worked great! Thank You!

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [October 11, 2020, 12:44am UTC](https://forum.dynamobim.com/t/need-help-with-list-logic/56061/6 "2020-10-11T00:44:21Z")

</div>

> [@hestingjj](#):
>
> I don’t believe there is a DesignScript Node unless its in a package I need to download.

DesignScript is the programming language behind Dynamo. You can author straight DesignScript code in a code block and often accomplish the same thing as using nodes. Sometimes it is easier to just use DesignScript syntax instead of using a complex combination of several nodes.

[https://primer.dynamobim.org/07\_Code-Block/7-1\_what-is-a-code-block.html](https://primer.dynamobim.org/07_Code-Block/7-1_what-is-a-code-block.html)
