# Working with lists

**URL:** <https://forum.dynamobim.com/t/working-with-lists/96527>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [December 19, 2023, 10:46am UTC](https://forum.dynamobim.com/t/working-with-lists/96527 "2023-12-19T10:46:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kboschJGDNZ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kboschjgdnz/32/50308_2.png) [@kboschJGDNZ](https://forum.dynamobim.com/u/kboschJGDNZ)\
**Post date:** [December 19, 2023, 10:46am UTC](https://forum.dynamobim.com/t/working-with-lists/96527/1 "2023-12-19T10:46:17Z")

</div>

I want my code to be as clean as possible and therefore made option 2 as below, but is it the same as option 1?  
I can’t check it with a watchnode as it mentions: UI.IntegerSlider input, but there seems to be a difference.

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

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [December 19, 2023, 10:50am UTC](https://forum.dynamobim.com/t/working-with-lists/96527/2 "2023-12-19T10:50:48Z")

</div>

Why not use the Dynamo OOTB slider? Or is this for Data Shapes?  
Do you want three different sliders in the end?

> but there seems to be a difference.

In what?

---

<div class="post-metadata">

**Author:** ![kboschJGDNZ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kboschjgdnz/32/50308_2.png) [@kboschJGDNZ](https://forum.dynamobim.com/u/kboschJGDNZ)\
**Post date:** [December 19, 2023, 10:53am UTC](https://forum.dynamobim.com/t/working-with-lists/96527/3 "2023-12-19T10:53:22Z")

</div>

Yes, it’s input for datashapes.

When I exchange the code in the red box, the tool doesn’t work anymore

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4fd552789398d775414d3e9f4402278ad35f101e.jpeg)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [December 19, 2023, 11:13am UTC](https://forum.dynamobim.com/t/working-with-lists/96527/4 "2023-12-19T11:13:57Z")

</div>

Yeah this should work the same

---

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [December 19, 2023, 11:41am UTC](https://forum.dynamobim.com/t/working-with-lists/96527/5 "2023-12-19T11:41:04Z")

</div>

How does it not work the same? Can you show what the datashapes output looks like before, for option 1 and after with option 2?

---

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [December 19, 2023, 11:43am UTC](https://forum.dynamobim.com/t/working-with-lists/96527/6 "2023-12-19T11:43:50Z")

</div>

It looks like it could be an issue with how you pass your inputs into the following nodes (circled in green).  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fc67514ee0e8472631be2c97edbb6e9733b185ed.png)

Try setting that node to lacing longest, or repeat the title string included in the codeblock 3 times also.

---

<div class="post-metadata">

**Author:** ![kboschJGDNZ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kboschjgdnz/32/50308_2.png) [@kboschJGDNZ](https://forum.dynamobim.com/u/kboschJGDNZ)\
**Post date:** [December 19, 2023, 12:38pm UTC](https://forum.dynamobim.com/t/working-with-lists/96527/7 "2023-12-19T12:38:43Z")

</div>

It does seem to be a list problem:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/e/3e1e9384f2f7844c32b39def25ba52095512a8c7.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/c/ec29ecb0b4ab86a4257164a6d57f82026020ffc3.png)

---

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [December 19, 2023, 12:46pm UTC](https://forum.dynamobim.com/t/working-with-lists/96527/8 "2023-12-19T12:46:52Z")

</div>

You have 6 inputs into your MultipleInputForm.

You need to narrow down which one is the cause of this issue.

I’d recommend doing some debugging, plugging in 1 input at a time into the MultipleInputForm until you get this error.

Once you have this you can narrow down the cause of this issue.

---

<div class="post-metadata">

**Author:** ![kboschJGDNZ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kboschjgdnz/32/50308_2.png) [@kboschJGDNZ](https://forum.dynamobim.com/u/kboschJGDNZ)\
**Post date:** [December 19, 2023, 12:55pm UTC](https://forum.dynamobim.com/t/working-with-lists/96527/9 "2023-12-19T12:55:44Z")

</div>

Well I didn’t change the rest of the code, but after removing the other 5 inputs I still get this warning.  
I guess that the UI.slider can’t handle multiple inputs.  
My knowledge of Python is limited.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/4/149b1f9eb1686d39723ca8f279e3873ea8737188.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09cdf0da7007a7b203af1d67994a4c406c358916.png)

---

<div class="post-metadata">

**Author:** ![haganjake2](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/haganjake2/32/119069_2.png) [@haganjake2](https://forum.dynamobim.com/u/haganjake2)\
**Post date:** [December 19, 2023, 1:16pm UTC](https://forum.dynamobim.com/t/working-with-lists/96527/10 "2023-12-19T13:16:10Z")

</div>

For some reason, minimum and maximum dont need repeating in the list:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/d/ed8cfad61a4ed18dfdd2534ec8f239a1584657d6.png)

---

<div class="post-metadata">

**Author:** ![kboschJGDNZ](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kboschjgdnz/32/50308_2.png) [@kboschJGDNZ](https://forum.dynamobim.com/u/kboschJGDNZ)\
**Post date:** [December 19, 2023, 1:23pm UTC](https://forum.dynamobim.com/t/working-with-lists/96527/11 "2023-12-19T13:23:54Z")

</div>

Great!..thanks for your help.
