Handle more than two cases, and combine conditions.

In this video:

  • else if adds more cases between if and else
  • Conditions are checked from the top: the first one that is true runs, and the rest are skipped
  • So the order of the conditions matters
  • && (and): both conditions must be true
  • || (or): at least one condition must be true
  • Chaining more && and || to build bigger conditions