# If "x" contains

**URL:** <https://forum.dynamobim.com/t/if-x-contains/6087>\
**Category:** Uncategorized\
**Created:** [September 9, 2016, 9:29am UTC](https://forum.dynamobim.com/t/if-x-contains/6087 "2016-09-09T09:29:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jodiedecoopman](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jodiedecoopman](https://forum.dynamobim.com/u/jodiedecoopman)\
**Post date:** [September 9, 2016, 9:29am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/1 "2016-09-09T09:29:24Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/c/cc31e48835843e4b248ed90b8e966100d19bb882.PNG)

Hi all, I would like create filter to see if my character string contains the word " balcony " I do not know if I should use the node" formula " or codeblock , my tests don’t work

thanks for your help!

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 9, 2016, 9:35am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/2 "2016-09-09T09:35:29Z")

</div>

Well the value coming out of the GetParameterByValue node is null… it’s obvious that’s it’s not gonna find anything 🙂

---

<div class="post-metadata">

**Author:** ![jodiedecoopman](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jodiedecoopman](https://forum.dynamobim.com/u/jodiedecoopman)\
**Post date:** [September 9, 2016, 9:40am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/3 "2016-09-09T09:40:02Z")

</div>

> [@T\_Pover](#):
>
> Well the value coming out of the GetParameterByValue node is null… it’s obvious that’s it’s not gonna find anythin

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b41d26e0ea21819e2c48df98bbb7ccbf87019952.PNG)

Sorry i forgot to run it 🙂

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [September 9, 2016, 9:43am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/4 "2016-09-09T09:43:44Z")

</div>

No problem 🙂  
So the String.Contains seems to work, I guess the FilterByBoolMask will work with that.

---

<div class="post-metadata">

**Author:** ![Tomasz\_Puchala](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tomasz\_Puchala](https://forum.dynamobim.com/u/Tomasz_Puchala)\
**Post date:** [September 9, 2016, 9:46am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/5 "2016-09-09T09:46:34Z")

</div>

Hi,

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/7/7a22ff3d7f9c80f4d4ac26077cb12f87c3c4bceb.jpg)

---

<div class="post-metadata">

**Author:** ![jodiedecoopman](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jodiedecoopman](https://forum.dynamobim.com/u/jodiedecoopman)\
**Post date:** [September 9, 2016, 9:52am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/6 "2016-09-09T09:52:30Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/c/c768316f3973bc9f3b089381216eb61a3da5457e.PNG)

Yes it works! But the filterBy Bool Mask gives me a list of parameters containing the word “balcon” instead of giving me a list of elements having a parameter containing the word “balcon”

---

<div class="post-metadata">

**Author:** ![Tomasz\_Puchala](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tomasz\_Puchala](https://forum.dynamobim.com/u/Tomasz_Puchala)\
**Post date:** [September 9, 2016, 9:58am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/7 "2016-09-09T09:58:04Z")

</div>

Oh sorry,  
connect :All element of category to filterByBoolMask - list input

---

<div class="post-metadata">

**Author:** ![jodiedecoopman](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jodiedecoopman](https://forum.dynamobim.com/u/jodiedecoopman)\
**Post date:** [September 9, 2016, 11:23am UTC](https://forum.dynamobim.com/t/if-x-contains/6087/8 "2016-09-09T11:23:10Z")

</div>

Yeeees! Thank you so much!! 🙂
