PL-500 · Question #37
PL-500 Question #37: Real Exam Question with Answer & Explanation
The correct answer is C: IF $'''%IsEmpty(Variable1)% AND %IsEmpty(Variable2)% ''' = $'''True'''. For an IF statement in a Power Automate for desktop flow requiring AND logic, variables and functions must be correctly referenced within string expressions for proper evaluation.
Question
You are developing a desktop flow. You need to include an IF statement that contains AND logic within the flow. Which expression should you use for the IF statement?
Options
- AIF (IsEmpty(Variable1) AND IsEmpty(Variable2)) = $'''True'''
- BIF IsEmpty(IsEmpty(Variable1) AND IsEmpty(Variable2))
- CIF $'''%IsEmpty(Variable1)% AND %IsEmpty(Variable2)% ''' = $'''True'''
- DIF (IsEmpty(Variable1) OR IsEmpty(Variable2)) = $'''True'''
Explanation
For an IF statement in a Power Automate for desktop flow requiring AND logic, variables and functions must be correctly referenced within string expressions for proper evaluation.
Common mistakes.
- A. This syntax uses parentheses directly without wrapping the function calls in percent signs, which is generally not the correct way to evaluate expressions with functions and logical operators within a string context in Power Automate for desktop IF statements.
- B. This expression incorrectly applies
IsEmpty()to the result of a booleanANDoperation, which is not a valid usage, asIsEmpty()expects a variable or value, not a boolean. - D. This expression uses
ORlogic instead of the requiredANDlogic, which would result in a different conditional evaluation.
Concept tested. Desktop flow conditional logic and expression syntax
Reference. https://learn.microsoft.com/power-automate/desktop-flows-variables-expressions
Topics
Community Discussion
No community discussion yet for this question.