# String List Compare

**URL:** <https://forum.dynamobim.com/t/string-list-compare/77833>\
**Category:** Revit\
**Tags:** python, dynamo\
**Created:** [June 20, 2022, 11:37pm UTC](https://forum.dynamobim.com/t/string-list-compare/77833 "2022-06-20T23:37:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byelleXW43G](https://avatars.discourse-cdn.com/v4/letter/b/d9b06d/32.png) [@byelleXW43G](https://forum.dynamobim.com/u/byelleXW43G)\
**Post date:** [June 20, 2022, 11:37pm UTC](https://forum.dynamobim.com/t/string-list-compare/77833/1 "2022-06-20T23:37:18Z")

</div>

I figured it out using string contains

I am trying to replicate this

[https://forum.dynamobim.com/t/compare-two-unequal-lists/4880](https://forum.dynamobim.com/t/compare-two-unequal-lists/4880)

but with a set of stings. I know that the bottom input is a var but it still appears to be working I can’t get it to list the listed bool for the data that it is being compared to it is always just a single false.

This would help me out a lot I am almost done.

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

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [June 21, 2022, 12:45am UTC](https://forum.dynamobim.com/t/string-list-compare/77833/2 "2022-06-21T00:45:39Z")

</div>

Since your list structures are different lengths, you’ll need to use a different lacing (bottom right) and probably try cross product. Then use a Any.True node and list levels to see if there are any may he’s per grouped list.

---

<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:** [June 21, 2022, 5:49am UTC](https://forum.dynamobim.com/t/string-list-compare/77833/3 "2022-06-21T05:49:12Z")

</div>

Set the item input of the list.contains to @L1
