+ 1

Can I execute a switch with a string instead of an integer?

20th Apr 2019, 1:50 PM
Jan Szlązak
Jan Szlązak - avatar
2 Answers
+ 3
Nope, switch only supports chars and ints
20th Apr 2019, 1:56 PM
Elva
Elva - avatar
+ 2
You can use characters too
21st Apr 2019, 10:02 AM
Shahil Ahmed
Shahil Ahmed - avatar