# String contains

**URL:** <https://forum.dynamobim.com/t/string-contains/18207>\
**Category:** Lists-Logic\
**Created:** [January 17, 2018, 2:15am UTC](https://forum.dynamobim.com/t/string-contains/18207 "2018-01-17T02:15:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uaifestival](https://avatars.discourse-cdn.com/v4/letter/u/47e85d/32.png) [@Uaifestival](https://forum.dynamobim.com/u/Uaifestival)\
**Post date:** [January 17, 2018, 2:15am UTC](https://forum.dynamobim.com/t/string-contains/18207/1 "2018-01-17T02:15:26Z")

</div>

Hello I need to filter Area by levels,  
than group them and write to Excel with some  
other parameters.  
I do not see the error in my definition.  
I am trying to filter using the string contains node and subsequently the filter by boolean mask but I got only Falses …

 ![ElementgetParameterbyname](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/5407c383072db138687dfcfc56682e1f88ca88d2.PNG)  
it might something dumb…

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [January 17, 2018, 2:17am UTC](https://forum.dynamobim.com/t/string-contains/18207/2 "2018-01-17T02:17:55Z")

</div>

Could this help?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/9/795c4666fb28d85d53d3576b0cf36f91db963d60.jpg)

---

<div class="post-metadata">

**Author:** ![Uaifestival](https://avatars.discourse-cdn.com/v4/letter/u/47e85d/32.png) [@Uaifestival](https://forum.dynamobim.com/u/Uaifestival)\
**Post date:** [January 17, 2018, 2:23am UTC](https://forum.dynamobim.com/t/string-contains/18207/3 "2018-01-17T02:23:14Z")

</div>

Yes that is my intent and thank for the reply.  
Unless I cannot get true value I do not connect that 😉  
The problem is before. I have Areas on 2FL and 1FL and so on but the node “String.Contains” do not get them … I feed why? I do not understand.

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [January 17, 2018, 2:28am UTC](https://forum.dynamobim.com/t/string-contains/18207/4 "2018-01-17T02:28:59Z")

</div>

Try changing the lacing of Element.GetParameterValueByName node to Shortest

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/35a105deee301b689b8026ded65f7f9dff0ec8a6.jpg)

---

<div class="post-metadata">

**Author:** ![Uaifestival](https://avatars.discourse-cdn.com/v4/letter/u/47e85d/32.png) [@Uaifestival](https://forum.dynamobim.com/u/Uaifestival)\
**Post date:** [January 17, 2018, 5:39am UTC](https://forum.dynamobim.com/t/string-contains/18207/5 "2018-01-17T05:39:59Z")

</div>

Thanks. I have been unlucky recently with strings so I solved through the value itself using the Equal node…

 ![listbyfilter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/f/4f51ba0699cadf038fba6e29ed16c2b9c18f75b7.PNG). The only thing I would like to broaden this approach to automatically get the the filter for each level instead of writing in the code the leve names. I will do when I have some spare time…soon to come with other grouping and sorting questions before moving to Excel the datas…(I am rusty onlist managing at the moment)
