Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use a Condition action to run different actions depending on whether a comparison is true or false.
In this example, the flow sends an email when a numeric quantity is greater than or equal to 10.
Prerequisites
- An existing cloud flow with a trigger and an earlier step that provides a nonblank numeric value. This example calls that value Quantity; use the corresponding numeric value from your flow.
- A connection for the email action you choose to use.
Add a condition
- Sign in to Power Automate, open My flows, and edit your flow.
- In the new designer, select the plus (+) icon after the step that provides the numeric value. Search for Condition and select it.
- Select the Condition card and open its Parameters tab.
- For the left value, insert the numeric output from the earlier step using dynamic content. In this example, select Quantity.
- Select is greater than or equal to as the comparison operator.
- Enter 10 for the right value.
- In the branch that runs when the condition is true, add an email action and configure its connection, recipient, and message.
- Optionally, add actions to the branch that runs when the condition is false.
- Save your flow.
The condition is true for 10 and larger values, and false for values below 10.
For more information about configuring cards in the new designer, see Explore the cloud flows designer.
Test both branches
- Test the flow with source data that produces a quantity of 9. Confirm that the condition is false and the email action is skipped.
- Repeat with a quantity of 10. Confirm that the condition is true and the email action runs.
- Repeat with a quantity of 11. Confirm that the condition is true.
- Review the condition inputs and action results in each run.
Saving a flow doesn't verify its connections or branch behavior.
Next step
Learn how to use expressions in conditions.