+ 1
Does the Case need to be in brackets?
what if you are testing for multiple cases using the &&AND. ||OR and. !NOT
1 Respuesta
+ 3
Switch statement are only used to check the value of given variable.
In any case the value of variable is found the statement will execute until the break statement is reached.
To test the variable in multiple cases you can use ' if else if ' statement.