Concept Flow - If–else expression
Evaluate condition
Condition true?
No→Execute else block
Use else result
Execute if block
Use if result
Continue with result
The program checks a condition. If true, it runs the 'if' block and uses its result. Otherwise, it runs the 'else' block and uses that result.