# Complex list multiplication

**URL:** <https://forum.dynamobim.com/t/complex-list-multiplication/32960>\
**Category:** Lists-Logic\
**Created:** [March 5, 2019, 10:17am UTC](https://forum.dynamobim.com/t/complex-list-multiplication/32960 "2019-03-05T10:17:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![walraven.timo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/walraven.timo/32/72764_2.png) [@walraven.timo](https://forum.dynamobim.com/u/walraven.timo)\
**Post date:** [March 5, 2019, 10:17am UTC](https://forum.dynamobim.com/t/complex-list-multiplication/32960/1 "2019-03-05T10:17:03Z")

</div>

I have two lists that i would like to combine in a cross product kind of way, let me explain:

as shown in the picture i have two lists with a X and Y value. I want all X 0-list values to be added cross product with all Z 0-list items But not with 1-list items. So:

0-List  
X1, Z1  
X1, Z2  
X1, Z3  
X2, Z1  
X2, Z2  
X2, Z3  
X3, Z1  
and so on…

So, if you’re good with lists, please help me! 🙂

Kind regards,

Timo

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/d/fd895357afeecf7a2cb730cc370028cb1acbe4b8.png)

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [March 5, 2019, 10:18am UTC](https://forum.dynamobim.com/t/complex-list-multiplication/32960/2 "2019-03-05T10:18:50Z")

</div>

hi,  
convert them to String

---

<div class="post-metadata">

**Author:** ![walraven.timo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/walraven.timo/32/72764_2.png) [@walraven.timo](https://forum.dynamobim.com/u/walraven.timo)\
**Post date:** [March 5, 2019, 10:23am UTC](https://forum.dynamobim.com/t/complex-list-multiplication/32960/3 "2019-03-05T10:23:26Z")

</div>

thank you, but the only thing that does is letting me combine X1 and Z1, X2 and Z2. That’s not my problem. the thing i would like to achieve is a cross product combination of all sublists. So 5x5=25 combinations per sublist. if i flatten the list and cross product them i end up with 90\*90=8100 items because it combines all values…
