Specify that a flow performs one or more tasks only if a particular 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.
Prerequisites
- Create a flow from a template - this tutorial will use this template as the example
Add a condition
In flow.microsoft.com, select My Flows in the top navigation bar.
In the list of flows, select a flow that you have created. This tutorial uses an example with a Twitter trigger and a SharePoint action.
Under the last action, select the New step button.
Select Add a condition.
Select an empty area in Object name, and select Add dynamic content to open the dynamic content menu.
Select the Retweet count parameter to add it to the box.
In the Relationship box, select is greater than or equal to.
In the Value box, type 10.
Click on the header of action you want inside of condition (such as Create item) and drag it underneath the text that reads IF YES. When you release the cursor, the action should move into that box.
Save the flow.
Edit in advanced mode
You can also select the Edit in advanced mode link to write more advanced conditions. You can use any expression from the Workflow definition language here. Learn more about what functions are available.