Cheat Sheets/Power Apps/If
Power Fx function

IfPower Fx function reference

Return a value by condition.

Syntax

powerfx
If( Condition1, ThenResult1 [, Condition2, ThenResult2, ... ] [, DefaultResult ] )

Examples

powerfx
If(Score >= 50, "Pass", "Fail")
"Pass" / "Fail"
powerfx
If(Score >= 90, "A", Score >= 80, "B", Score >= 70, "C", "F")
powerfx
If(IsBlank(txtEmail.Text), Notify("Email required", NotificationType.Error), SubmitForm(frmSignup))

Common mistakes & gotchas

Related Power Fx functions

From Conditional logic

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet