


If image: Executes a block of actions if a specific image is found on the screen, or not. If window contains: Executes a block of actions if a specific text or UI element exists in a window, or not. If window: Executes a block of actions if a specific window is open, or not. If process: Executes a block of actions if a specific Windows process is running, or not. If service: Executes a block of actions if a specific service is running, is paused or is stopped. If folder exists: Checks if a folder exists or not before executing a block of actions. This action can be used to ensure that a file exists before performing other operations on it. If file exists: Checks if a file exists or not before executing a block of actions. If variationsĪpart from the standard If action, Power Automate provides some additional conditional actions:

Comparing variables of different data types makes the condition always false. In all cases, the variables and values used as operands must be of the same data type. It should be placed within the If/End block and always before the Else action. This action is executed when the previous If and Else if conditions are invalid. To set multiple conditions for which different logic is executed, deploy the Else if action. It should be placed between the If and the End actions. The Else action defines the logic to be executed when the If condition is invalid. The platform supports the most significant logical operations, such as equal, not equal, and greater than.Īn If may optionally contain an Else action. If the condition is true, the logic between the If and End is executed.Īn If action consists of two operands and an operator. Power Automate provides the If action to check whether a given condition is valid. The If statement is one of the most commonly used conditionals in flow development and programming. For example, you can check if a file exists before trying to rename it. Using conditionals, you can ensure certain elements have a wished value or state before performing other actions. If the condition is false, the block of actions will be skipped. Conditionals allow you to execute blocks of actions only if a given condition is met.
