0
Can a switch statement only compare using "=="?
I noticed that in the tutorial for switch they dont mention it comapring anything except "==".
2 Answers
+ 2
Thats all it does
+ 1
Yes. The purpose of a switch statement is for checking equality.
I noticed that in the tutorial for switch they dont mention it comapring anything except "==".