Can you test if a is greater than b in a switch ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you test if a is greater than b in a switch ?

31st Dec 2016, 4:51 PM
Jan P.
2 Answers
+ 4
Yes, why not? Simply say switch(a<b) The cases are true and false.
31st Dec 2016, 4:59 PM
Promasu
Promasu - avatar
0
thanks
7th Jan 2017, 11:22 AM
Jan P.