# Compare list of points for match

**URL:** <https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [July 18, 2022, 11:43pm UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798 "2022-07-18T23:43:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dynamo\_Ann](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Dynamo\_Ann](https://forum.dynamobim.com/u/Dynamo_Ann)\
**Post date:** [July 18, 2022, 11:43pm UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/1 "2022-07-18T23:43:54Z")

</div>

Hello,

I’ve tried a variety of lacing and levels, but cant seem to get this right. Have searched through posts but I’m just not getting it.

Can anyone spot what I am doing wrong?  
I have a list of curves, some of them will have the same start point/end point. I can see that there are matching locations, but the lists return false always.

 ![_listpointscompare](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/9/5936d02f87e9bde8c5eafe4af9ab6c13072972e0.png)

Thank you, appreciate your assistance.

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [July 19, 2022, 12:33am UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/2 "2022-07-19T00:33:38Z")

</div>

The == node is comparing values rather than elements, e.g. integers, doubles, strings, booleans, etc.

Try using List.Equals instead.

---

<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:** [July 19, 2022, 1:40am UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/3 "2022-07-19T01:40:24Z")

</div>

Try this node out for geometry comparison: [Dynamo Dictionary (dynamobim.com)](https://dictionary.dynamobim.com/#/Geometry/Geometry/Action/IsAlmostEqualTo)

---

<div class="post-metadata">

**Author:** ![Dynamo\_Ann](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Dynamo\_Ann](https://forum.dynamobim.com/u/Dynamo_Ann)\
**Post date:** [July 19, 2022, 3:25am UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/4 "2022-07-19T03:25:14Z")

</div>

Thank you. Both work great!

And, I feel like this should be simple, but how do I get the list of trues to filter out… Am I missing a step between ListFilterBool mask and the first list that feeds into it?

Also, perhaps there is a better way to do this? I am trying to get the lines which have an intersection point, Geometry.DoesIntersect works too, perhaps that is a better method, still struggling to get the end list of lines that have start and end point overlaps…

 ![_listpointscompar2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/5838d5d367d2e727d876926ffb3e9e92ce087370.png)

---

<div class="post-metadata">

**Author:** ![newshunhk](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@newshunhk](https://forum.dynamobim.com/u/newshunhk)\
**Post date:** [July 19, 2022, 3:32am UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/5 "2022-07-19T03:32:27Z")

</div>

you can play around the level too, or use list.map

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

---

<div class="post-metadata">

**Author:** ![Hamish](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Hamish](https://forum.dynamobim.com/u/Hamish)\
**Post date:** [July 19, 2022, 4:10am UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/6 "2022-07-19T04:10:03Z")

</div>

Your list inputs don’t match for the boolmask node. Currently the list input is 2 levels, 6 items, and the mask input is 3 levels 36 items.

This is because of the cross product lacing, that checks every value against every other value. In this case, you don’t care about the individual true/false for each check, only whether or not one of them is true, so you can use a node like ‘AnyTrue’. Or if you’re avoiding add-in packages for whatever reasons, a List.Contains true will accomplish the same thing. This should make the bool mask list 2 levels, 6 items, same as your input list.

---

<div class="post-metadata">

**Author:** ![Dynamo\_Ann](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Dynamo\_Ann](https://forum.dynamobim.com/u/Dynamo_Ann)\
**Post date:** [July 20, 2022, 1:14am UTC](https://forum.dynamobim.com/t/compare-list-of-points-for-match/78798/7 "2022-07-20T01:14:46Z")

</div>

Thanks for the detailed description, appreciate it, is working 🙂
