cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marcellobox
New Member

OR syntax

Hi, I'm struggling to make a web-scrapping bot analyze certain words: I guess I'm using the wrong syntax but I couldn't find anything helpful online.

 

The problem is: I get a text list and save it on a variable, after that I want to check the words contained in the variable. If certain words are found in the list I want to execute certain commands, like closing a tab on the browser. I have tried in different ways, using the command "If the web page contains" or saving the text on a variable and after using the command "If" to check if the variable contains those words. The first approach requires to check multiple time the web page, which makes the bot slow, the second doesn't seem to check for multiple values.. can you help me?

 

or_condition.jpg

 I think the quickest way would be to use the command 'IF-contains', but I think I'm doing something wrong because it's not working..

 

1 ACCEPTED SOLUTION

Accepted Solutions
lbendlin
Power Participant
Power Participant

That step only accepts a single text value, not a list.  You need to use nested ifs or loops.

lbendlin_0-1662931161289.png

or like this

 

lbendlin_1-1662932005691.png

 

 

Browser automation - Power Automate | Microsoft Docs

View solution in original post

2 REPLIES 2
lbendlin
Power Participant
Power Participant

That step only accepts a single text value, not a list.  You need to use nested ifs or loops.

lbendlin_0-1662931161289.png

or like this

 

lbendlin_1-1662932005691.png

 

 

Browser automation - Power Automate | Microsoft Docs

marcellobox
New Member

Thanks, I've used your second suggestion and it works smoothly

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,335)