# Run comparison node through each index of two lists

**URL:** <https://forum.dynamobim.com/t/run-comparison-node-through-each-index-of-two-lists/38>\
**Category:** Packages\
**Created:** [December 18, 2013, 4:33pm UTC](https://forum.dynamobim.com/t/run-comparison-node-through-each-index-of-two-lists/38 "2013-12-18T16:33:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Doria](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_doria/32/13825_2.png) [@David\_Doria](https://forum.dynamobim.com/u/David_Doria)\
**Post date:** [December 18, 2013, 4:33pm UTC](https://forum.dynamobim.com/t/run-comparison-node-through-each-index-of-two-lists/38/1 "2013-12-18T16:33:40Z")

</div>

I’ve just started dealing with logic nodes now and have stubbed upon a problem. I have two lists of numbers and I want to compare each index of one list with the respective one on the other list with a Equal node. So, to be clearer, I don’t want to compare the lists as a whole, having as a result 0 or 1, I want to have each index compared (index0 of list A with index0 of list B and so on), so the result I’m expecting is a list of boolean results.

&nbsp;

&nbsp;

I’ve tried to combine both lists and map them using the equal node as the mapping function; connecting the lists directly to the equal node and I’ve tried to build sublists inside of each list for each index but it was all unsuccessful.

&nbsp;

&nbsp;

![](http://dynamobim.com/wp-content/uploads/discussions/1-1000/103-Equal.JPG?width=750)

&nbsp;

&nbsp;

The question is: is it prossible(I really believe it is) to compare two lists and have as a result another list of boolean values? And if yes, can this list be fed into a If comparison as a test block?

&nbsp;

&nbsp;

Hope I made myself clear : )

&nbsp;

&nbsp;

Thanks,

&nbsp;

&nbsp;

David Dória

---

<div class="post-metadata">

**Author:** ![David\_Doria](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_doria/32/13825_2.png) [@David\_Doria](https://forum.dynamobim.com/u/David_Doria)\
**Post date:** [December 18, 2013, 10:25pm UTC](https://forum.dynamobim.com/t/run-comparison-node-through-each-index-of-two-lists/38/2 "2013-12-18T22:25:46Z")

</div>

Wow, I really wouldn't think of that! Thanks, Andreas!

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [December 18, 2013, 8:10pm UTC](https://forum.dynamobim.com/t/run-comparison-node-through-each-index-of-two-lists/38/3 "2013-12-18T20:10:58Z")

</div>

Hi David,

  

just use the formula node - it can process lists:

  

![](http://dynamobim.com/wp-content/uploads/discussions/1-1000/106-Unbenannt.PNG)
