Viewing 1 item
Tag Archives: if else statments

Advanced Control Flow – Switch Statements

A switch statement allows you to control the flow of your program similar to if and else statements, but can be easier for the user to understand. The Switch Statement The structure of a switch statement is the following: switch(expression) { case : statements break; case : statements break; //More cases… default : statements }

5