PPT Slide
Multiple Selections via switch
Use if construct for one selection.
Use if/else construct for double selection.
Use switch construct for multiple selection. (e.g., situations appropriate for if-elseif-elseif-else)Note:
- Useful when making a selection
among multiple values of the
- Not useful when selecting
among values of different variables.