+ 2

This might be annoying but i really don't understand the switch statement.

Can someone answer the switch simply?đŸ˜”Cuz I really don't understand the meaning and how its used.Also pls give some examples.â˜ș

30th Jan 2017, 5:22 PM
Julian Aung
Julian Aung - avatar
2 Answers
+ 2
some times you will need to programa a lot of if statements to compare a variable with some of its posible values. if you need to do this a lot of times is faster to use a switch statement
30th Jan 2017, 10:36 PM
sebipincha
sebipincha - avatar
+ 3
Sorry for the late reply and Thank U very Much!
16th Mar 2017, 5:31 PM
Julian Aung
Julian Aung - avatar