# List.Contains not showing correct output

**URL:** <https://forum.dynamobim.com/t/list-contains-not-showing-correct-output/61747>\
**Category:** Lists-Logic\
**Created:** [March 17, 2021, 2:11pm UTC](https://forum.dynamobim.com/t/list-contains-not-showing-correct-output/61747 "2021-03-17T14:11:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerbenKAG9F](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gerbenKAG9F](https://forum.dynamobim.com/u/gerbenKAG9F)\
**Post date:** [March 17, 2021, 2:11pm UTC](https://forum.dynamobim.com/t/list-contains-not-showing-correct-output/61747/1 "2021-03-17T14:11:42Z")

</div>

Hello,

I know there are a lot of other topics relating this issue, but none of the solutions works for me.  
I want to filter out all the rebars that are associated with a Structural Area reinforcement.  
With a Python script i got the GetRebarInSystemIds() . Then set a parameter with a specific text.  
My list should contain 394 items containing the first list. When i manually check the lists i see the lists are correct, but the output at the List.Contains node is not correct.

Any insights would be nice.

 ![DynamoFo](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/5/d5cb16681fa023e1e56910b0743cfc50415a1396.jpeg)

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [March 17, 2021, 2:40pm UTC](https://forum.dynamobim.com/t/list-contains-not-showing-correct-output/61747/2 "2021-03-17T14:40:07Z")

</div>

@gerbenKAG9F You can either swap the inputs of List.Contains node or use the List.IndexOf node as shown below to get the desired result.

 ![dfdh](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/f/ffd5831fb261c432e0f254f886d166863e2fb6dc.png)

---

<div class="post-metadata">

**Author:** ![gerbenKAG9F](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@gerbenKAG9F](https://forum.dynamobim.com/u/gerbenKAG9F)\
**Post date:** [March 17, 2021, 3:18pm UTC](https://forum.dynamobim.com/t/list-contains-not-showing-correct-output/61747/3 "2021-03-17T15:18:30Z")

</div>

Option1 worked.  
I was sure I tried that…
