Condition in Control Connector(Power Automate Cloud flows)
The action to be performed is branched according to whether or not the condition is met.
It works like the IF function in Excel.
While "Condition" is a "Yes" or "No" choice, "Switch" handles branches with three or more choices.
- 1. How to use
- 2. For those who want to learn Power Automate Cloud flow effectively
- 3. Links
- 3.1. Control Connector
- 3.2. Example of use.
- 3.2.1. Delete file in Google Drive Connector.How to delete a file by specifying its name (check if a file with the same name exists).
- 3.2.2. How to determine even and odd numbers.
- 3.2.3. How to use only URL parameters.
- 3.2.4. How to remove URL parameters.
- 3.2.5. How to specify a date range for retrieving Outlook mail.
How to use
Select the "Control" connector when adding steps to the flow.
Select "Condition" from the "Action" menu.
A "condition" will be added.
This action consists of three parts: "Condition", "If yes", and "If no".
In the "If yes" case, the action to be taken if the "condition" is correct.
In the "If no" column, the action to be taken if the "Condition" is not correct.
The "Condition" specifies the condition of judgment, but first, the value to be judged is set.
In most cases, dynamic content is specified on the left side.
Next, set the value on the right side. This can be some dynamic content or a fixed value.
It may be a boolean value such as true or false.
Finally, select the central comparison logic.
Comparison logic is not appropriate for every type of value.
Large and small comparisons. It is mainly used for numbers and dates.
For strings, it is rarely used because it is a character code comparison.
Logic in red is logical negation.
They are deprecated because using them causes a double negative in the "If no", which is complicated.
If you want to use logical negation, use the logic of affirmation and use "If no".
Comparison logic | Type | Text/Datetime | Boolean | Numeric |
---|---|---|---|---|
contains | Partial match | |||
does not contain | Partial match | |||
is equal to | Exact match | |||
is not equal to | Exact match | |||
is greater than | Comparison of large and small | |||
is greater than or equal to | Comparison of large and small | |||
is less than | Comparison of large and small | |||
is less than or equal to | Comparison of large and small | |||
starts with | Partial match | |||
does not starts with | Partial match | |||
end with | Partial match | |||
does not end with | Partial match |
Then, in the "Add" section below, you can add conditions. There are two types of additions: adding rows and adding groups.
"And" is "Yes" if all of the conditions connected by the blue ruled lines are true.
"Or" is "Yes" if one or more of the conditions are true.
"Add group" creates a condition in the lower level.
Avoid heavy use of groups whenever possible, as this can complicate things.
Click the arrows to zoom in and out of the group view.
Clicking the "…" button on a condition allows the condition to be deleted, moved, or ungrouped (placed in the same row as one level above).
For those who want to learn Power Automate Cloud flow effectively
The information on this site is now available in an easy-to-read e-book format.
Or Kindle Unlimited (unlimited reading).
You willl discover how to about basic operations.
By the end of this book, you will be equipped with the knowledge you need to use Power Automate Cloud flow to streamline your workflow.
Discussion
New Comments
No comments yet. Be the first one!