# Mistery

**URL:** <https://forum.dynamobim.com/t/mistery/95687>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [November 21, 2023, 10:57am UTC](https://forum.dynamobim.com/t/mistery/95687 "2023-11-21T10:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrej](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrej/32/172909_2.png) [@Andrej](https://forum.dynamobim.com/u/Andrej)\
**Post date:** [November 21, 2023, 10:57am UTC](https://forum.dynamobim.com/t/mistery/95687/1 "2023-11-21T10:57:06Z")

</div>

Why is this not working? I need the result per each item.

 ![Untitled](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8ca6777d9d6faa0c03d4ccd80c535c97c5a95888.jpeg)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 21, 2023, 11:40am UTC](https://forum.dynamobim.com/t/mistery/95687/2 "2023-11-21T11:40:52Z")

</div>

No need for imperative code, as you’ve got matching test and value lengths.

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

If you do want to utilize imperative, I think you’ll need to ensure X is treated as a single item, not as the list which you are passing in. This is best done via building a definition, as follows:

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

---

<div class="post-metadata">

**Author:** ![Andrej](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrej/32/172909_2.png) [@Andrej](https://forum.dynamobim.com/u/Andrej)\
**Post date:** [November 21, 2023, 11:44am UTC](https://forum.dynamobim.com/t/mistery/95687/3 "2023-11-21T11:44:17Z")

</div>

ty
