โŒจ๏ธap computer science principles review

Conditional Statements

Written by the Fiveable Content Team โ€ข Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated August 2025

Definition

Conditional statements are programming constructs that allow the execution of different blocks of code based on certain conditions. They enable programs to make decisions and perform different actions depending on whether a condition is true or false.