Issue with comparing values in Flow

Kasia5
Tera Contributor

Hi All,

 

I am working with flow and I have an item where I have Lookup Select Box which looks like:

Kasia5_0-1707392645669.png

It has been created like that cause in variable I need values from field 'Operating system'

But now I have an issue cause I need to add in flow condition like:

If value from this variable contains XYZ then create the task, but because this variable is Lookup Select Box then I don't have operator 'contains'. There is only 'is'...

Kasia5_1-1707392839745.png

 

Is it some way to achieve condition which I need with 'contains'?

 

Thanks in advance for help

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Kasia5 In this case you can define a string type flow variable inside the flow. Set this flow variable with the value of Operating system field and use contain check on it via an if block.

 

Here is an example.

 

Screenshot 2024-02-08 at 5.25.49 PM.png

 

Hope this helps.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Kasia5 In this case you can define a string type flow variable inside the flow. Set this flow variable with the value of Operating system field and use contain check on it via an if block.

 

Here is an example.

 

Screenshot 2024-02-08 at 5.25.49 PM.png

 

Hope this helps.

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Kasia5 ,

 

For your info , list collector always returns comma seprated list of items. which with flow you cannot compare if the value exists or not. 

 

What you can do is, use script to check using .indexOf(); to see if it finds anything in string or use for loop to iterate with all the items from list collector to see if the match is found...

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect