Add a condition to a cloud flow

Specify that a cloud 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

  1. In Power Automate, select My flows.

    You might need to sign in if you're not already signed in.

  2. Select one of the flows from My flows, and then select More commands (the three dots).

    Select edit.

    This tutorial uses an example with a Twitter trigger and a SharePoint action.

  3. Select Edit.

  4. Under the last action, select New step > Condition.

  5. On the Condition card, select an empty area in box on the left.

    The Dynamic content list opens.

  6. Select the Retweet count parameter to add it to the box.

  7. In the box in the middle of the Condition card, select is greater than or equal to.

  8. In the box on the right, enter 10.

    The OBJECT NAME box with a parameter in it.

    Now that you've configured the condition, continue with the following steps to send an email if the Retweet count is more than 10.

  9. Select Add an action on the If yes send of the condition.

  10. Enter Send an email into the search box, and then select Send an email (V2).

    Search to send an email.

  11. Configure the Send an email (V2) card to your liking, indicating the contents of the email that the flow sends if the Retweet count is greater than 10.

    You can also configure the If no side of the condition if you'd like to take an when the Retweet count is less than 10.

  12. Save the flow.


You can create complex conditions by using the Add button on the condition card.

Add complex conditions.

Learn about all the available expressions.

Next steps

Learn how to use expressions in conditions in advanced mode.