MS Flow has a variety of in-build functions to modify or handle the processes and steps. In some scenarios, suppose, you have a variable that is storing some data. So, you must check that if that variable has some data or is it null or empty.
Notice, null, or empty both are different from each other. For example, a null string will have no value at all, on the other hand, an empty string contains a string of 0 lengths.
You can achieve both these checks in a very easy and effective way through MS Flow. To implement these checks, follow the given steps below:
1. First, initialize the variable in which you want to perform these checks.
2. Now add an IF condition to check if the string is NULL. To do so, you would have to add the variable and value box, select the Expression tab, and enter null. Press OK.
It should look like this:
3. For adding an empty check, the empty function in MS Flow returns a Boolean value. Add another row and in the first input box enter empty() from the Expression tab.
4. Now in the Empty function, you would have to enter your string variable to check if it is empty or not. So, in the Empty function, select your String Variable from the Dynamic Content tab.
5. As the Empty function returns a Boolean value, you can easily check if it's true or not. In our case, it will False.
6. Now you can further perform your set of steps depending upon the string values in condition True or False.