Basic if-else

Why if-else instead of two if statements?

Tracing if-else statements

Nested if-else

Trace the nested logic:

if-else with return values

One-line if-else (ternary operator)

Complete example: Movie ticket pricing

AP Exam Tips

Common Mistakes

Key Vocabulary