- 1
Why we can not convert some if statement into switch statement
if(a>=b) { //code to be executed }
3 odpowiedzi
+ 1
If you're statement is Logical use if statement, if it is multiple choices switch is the best choice.
0
if statement is conditional either it's true or false
Switch has specific case and you cannot make a conditional on it
- 1
I dont understand yet please give me full description