Add a condition to a flow
Specify that a flow performs one or more tasks only if a condition is true. For example, specify that you'll get an email only if a tweet that contains a keyword is retweeted at least 10 times.
Add a condition
In Microsoft Flow, select My flows in the top navigation bar.
You might need to sign in if you're not already signed in.
In the list of flows, select one of the flows that you've created.
This tutorial uses an example with a Twitter trigger and a SharePoint action.
Select Edit flow.
Under the last action, select New step.
Select Add a condition.
On the Condition card, select an empty area in box on the left.
The Dynamic content list opens.
Select the Retweet count parameter to add it to the box.
In the box in the middle of the Condition card, select is greater than or equal to.
In the box on the right, enter 10.
Select the header of the action you want to use inside the condition (such as Create item) and drag it underneath the text that reads If yes.
When you release the cursor, the action moves into that box.
Configure the action as necessary.
Save the flow.
Edit in advanced mode
You can also select Edit in advanced mode to write more advanced conditions. You can use any expression from the Workflow definition language in advanced mode. Learn about all available expressions.
Learn how to use expressions in conditions in advanced mode.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.