0
what is switch used for!?
5 Antworten
+ 3
I agree with @Mark. its substitute. you can use it for example for menu, check chooses or function with keypress, keyup, keydown.
+ 2
Switch statements are just substitute for "if" statements.
+ 2
can be used as an alternative for the if else if else statements
+ 1
switch are same as if else statements but are faster
0
It is more convenient to use cycle