# Combine List with sub List

**URL:** <https://forum.dynamobim.com/t/combine-list-with-sub-list/17117>\
**Category:** Lists-Logic\
**Created:** [December 5, 2017, 12:01pm UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117 "2017-12-05T12:01:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pilayaa](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@pilayaa](https://forum.dynamobim.com/u/pilayaa)\
**Post date:** [December 5, 2017, 12:01pm UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117/1 "2017-12-05T12:01:22Z")

</div>

Hi all,  
I have two list, in that one list having two sub list. I want to combine the list and required a list with three sub list as image below. Any ideas?  
 ![List 6](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09dd79cc4a6296828d11a32cbe59330b740a715f.JPG)

Thanks  
Ilayaraja P

---

<div class="post-metadata">

**Author:** ![slepagetrudeau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/slepagetrudeau/32/29983_2.png) [@slepagetrudeau](https://forum.dynamobim.com/u/slepagetrudeau)\
**Post date:** [December 5, 2017, 12:16pm UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117/3 "2017-12-05T12:16:00Z")

</div>

Since lists themselves are considered object, it’s the same as saying you want [L0, L1] [L2] ti become [L0, L1, L2]

-List.AddItemToEnd and List.AddItemToFront, with a lacing of level 2, can do it if order is important

-Feed them in another List.Create and then a flatten node on level 2

-However, in your case, list.join seem the best option, as erfajo said.

Just type “list” in the library and try things out, see what works for you.

---

<div class="post-metadata">

**Author:** ![APELAEZDELEE](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/apelaezdelee/32/37010_2.png) [@APELAEZDELEE](https://forum.dynamobim.com/u/APELAEZDELEE)\
**Post date:** [December 5, 2017, 12:17pm UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117/4 "2017-12-05T12:17:27Z")

</div>

Like this?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/8/d8e880a26ddf2f002026514f59d7d83cfa4d764f.png)

---

<div class="post-metadata">

**Author:** ![pilayaa](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@pilayaa](https://forum.dynamobim.com/u/pilayaa)\
**Post date:** [December 5, 2017, 12:26pm UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117/5 "2017-12-05T12:26:32Z")

</div>

Thank you all for your reply. I tried the List.Join but I got the wrong output 😞  
Can you look at this?

 ![List 7](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d14113dad3e3477fea486c05e587e4c6127dbf4d.JPG)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [December 5, 2017, 12:36pm UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117/6 "2017-12-05T12:36:23Z")

</div>

Hi @pilayaa

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/025a6dae6cc9d40cc08eed5a1751e4cb73ac568b.png)

---

<div class="post-metadata">

**Author:** ![pilayaa](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@pilayaa](https://forum.dynamobim.com/u/pilayaa)\
**Post date:** [December 6, 2017, 6:31am UTC](https://forum.dynamobim.com/t/combine-list-with-sub-list/17117/7 "2017-12-06T06:31:52Z")

</div>

Thank you all for your feedback. List.Join option with use level (@L2) as suggested by @Kulkul works.
