Concept Flow - If expression
Evaluate condition
Condition true?
No→Execute else block
Result from else
Execute if block
Result from if
Use result
The if expression evaluates a condition. If true, it runs the if block and returns its value; otherwise, it runs the else block and returns that value.