Programming · Level 2 of 5
Conditional
Control flow that selects behavior based on a condition.
Only the applicable branch is executed under ordinary sequential semantics.
Example
A program chooses one message for success and another for failure.
Listen to the definition and example
Audio transcript
Conditional. Control flow that selects behavior based on a condition. Only the applicable branch is executed under ordinary sequential semantics. For example: A program chooses one message for success and another for failure.
Explore this concept
Why it matters
This helps you read implementation code and describe its behavior precisely.
Quick recall question
Try answering before looking back at the definition.