We used an if... then... else statement in this example because there were two alternative sets of instructions.

1. Which conditional statement would you use if there were only one set of instructions to either be executed or skipped?
2. Which conditional statement would you use if there were three alternative sets of instructions to choose among?
3. Which conditional statement would you use if there were ten alternative sets of instructions to choose among?


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.