Or

How to Use the Power Fx OrĀ  Function in Power Apps

In this article, we will take a closer look at the Power Fx Or function and show you how to use it in your Power Apps applications.

What is the Power Fx Or Function?

The Power Fx Or function is a logical function that allows you to evaluate multiple conditions and return a value based on whether any of those conditions are true. In other words, it allows you to create complex conditional statements that can handle multiple scenarios.

The syntax of the Power Fx Or function is as follows:


Or(Condition1, Condition2, …)


Where `Condition1`, `Condition2`, etc. are the conditions that you want to evaluate. These conditions can be any valid expression that evaluates to a Boolean value (i.e., True or False).

How to Use the Power Fx Or Function

To use the Power Fx Or function in your Power Apps application, you will need to follow these steps:

1. Open your Power Apps application in the Power Apps Studio.

2. Navigate to the screen or control where you want to use the Or function.

3. Add a new formula to the control that you want to apply the Or function to.

4. Enter the Or function syntax and specify the conditions that you want to evaluate.

Here is an example of how you can use the Power Fx Or function in your Power Apps application:

Suppose you have a form where the user can enter information about a new employee. You want to make sure that the user enters either the employee's email address or phone number, but not both. To do this, you can use the Or function in the following way:


If(Or(IsBlank(Email), IsBlank(Phone)), true, false)


Here, the Or function evaluates whether the Email or Phone fields are blank. If either field is blank, the function returns True, which means that the statement is true. If both fields have values, the function returns False, which means that the statement is false.

The Power Fx Or function is an essential tool in creating powerful and complex conditional statements in your Power Apps applications. By following the steps outlined in this article, you can easily implement the Or function in your applications and take advantage of its full potential. With this function, you can create dynamic and intelligent applications that meet the needs of your users.

Power Apps Training Courses by G Com Solutions (0800 998 9248)