+ 1

Does the Case need to be in brackets?

what if you are testing for multiple cases using the &&AND. ||OR and. !NOT

22nd Feb 2019, 9:38 PM
Emmanuel Itoya
Emmanuel Itoya - avatar
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.
23rd Feb 2019, 5:41 AM
UnknownYmous