Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
Conditional statements are programming constructs that allow different actions to be taken based on whether a certain condition is true or false. They control the flow of execution in a program.
Related terms
Input Values: These are the data values provided to a program during its execution. They can be used as conditions in conditional statements.
Multiple Possible Outcomes: This refers to situations where there are more than two possible results based on different conditions in a conditional statement.