# Multiple value in contains condition

**URL:** https://community.yellow.ai/t/multiple-value-in-contains-condition/2120
**Category:** Studio
**Tags:** builder
**Created:** [May 9, 2022, 10:38am UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120 "2022-05-09T10:38:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sanskritijain](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sanskritijain](https://community.yellow.ai/u/sanskritijain)
#### Post date: [May 9, 2022, 10:38am UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120/1 "2022-05-09T10:38:47Z")

</div>

Hi Team,  
I have to use multiple keywords in contains condition under if else.  
Single value I am getting captured but if am putting the synonyms of that value I am unable to get the correct email.  
[image|534x448](https://community.yellow.ai/uploads/short-url/6rJN4ZtYyPVVBUrKA1RsBjSZPm2.png)  
At the other side I am creating variables using array type and storing multiple keywords but still facing some challenges.  
Please confirm me is this the right way to fetch the array type variable.  
**data.variables.vHR**.

Regards,  
Sanskriti

---

<div class="post-metadata">

### Author: ![Pratik](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/pratik/32/69_2.png) [@Pratik](https://community.yellow.ai/u/Pratik)
#### Post date: [May 10, 2022, 8:37am UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120/2 "2022-05-10T08:37:36Z")

</div>

It’s not allowed to add multiple values under the `contains` field. Instead, you can add multiple condition nodes to achieve this.

---

<div class="post-metadata">

### Author: ![sanskritijain](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sanskritijain](https://community.yellow.ai/u/sanskritijain)
#### Post date: [May 10, 2022, 6:52pm UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120/3 "2022-05-10T18:52:26Z")

</div>

Hi Pratik  
I am using array for multiple values under the contains condition initially I have done, it was working perfectly but after this it’s not working. So I don’t know its the platform issue or it is happening from my end only.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/1/18643b0947573e1f0e3705c8b8b3decff0602035.png)  
In the array type variable I have entered the synonyms of the **“vendors”**.  
But now its only going to the top if condition whatever I am entering the text response.  
if I am typing any random query it going on top If condition instead of else condition.  
Please let me know what should I do for this.

---

<div class="post-metadata">

### Author: ![Pratik](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/pratik/32/69_2.png) [@Pratik](https://community.yellow.ai/u/Pratik)
#### Post date: [May 11, 2022, 6:43am UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120/4 "2022-05-11T06:43:35Z")

</div>

@sanskritijain you need to store the value of an array item in a new variable `{{{varibles.vVendors.0}}}`.

And then under `contains` you can select that new variable.

---

<div class="post-metadata">

### Author: ![sanskritijain](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sanskritijain](https://community.yellow.ai/u/sanskritijain)
#### Post date: [May 11, 2022, 8:17am UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120/5 "2022-05-11T08:17:19Z")

</div>

Hi,  
I have four values in a array by using {{{varibles.vVendors.0}}} I am getting only 0th position value from the array. I have to use multiple values in an array.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/d/d5e9f5113cf8cd1f23c70ac4e93fa51f89899be8.png)  
How can I fetch one of the multiple value from the array.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/yellowmessenger1/original/2X/d/d80a8ec4ffb0e63a049d796cba53ba125532dc47.png)

---

<div class="post-metadata">

### Author: ![Pratik](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.yellow.ai/pratik/32/69_2.png) [@Pratik](https://community.yellow.ai/u/Pratik)
#### Post date: [May 11, 2022, 9:12am UTC](https://community.yellow.ai/t/multiple-value-in-contains-condition/2120/6 "2022-05-11T09:12:40Z")

</div>

Yeah, as I mentioned earlier you need to add a seperate condition node for each item in the array.
