What is a condition?

The condition control is the bread and butter action for building what’s known as ‘conditional logic’ for your Power Automate flows. When creating flows in Power Automate for the first time – you’ll be drawn to using standard connector actions which are responsible for carrying out tasks and events both within and outside the Microsoft 365 ecosystem. However, you’ll quickly learn that you need to implement conditional logic for your solutions to improve flexibility and give you more control over the actions that take place.

How to write a condition

A condition inside Power Automate will return either a ‘True’ or ‘False’ output to a query.

Queries for conditions are better understood by many as:

[VALUE 1] [OPERATOR] [VALUE 2]

The operator defines how we are comparing the 2 values. In plain English we could say, Is the Car Colour (Value 1) equal to (Operator) Light Blue (Value 2).

Or, Is the current time (Value 1) greater than (Operator) 12:00 am (Value 2)

Or, does my shopping list (Value 1) contains (Operator) a loaf of bread (Value 2)

As you can see, we can quickly identify a pattern and possible use case for a condition.

The output for a condition can be one of two options. Yes or No. Both variations of the query can also include their own actions or events that take place if the condition is met or not met. For example, you could send a message in Teams if a condition is met or terminate the flow entirely if it is not (using the terminate action).

About the author 

Connor Deasey (Collab365)