In the following code im trying to make it to where the user can enter either 1 or 2 to get the same result. I was wondering why this isnt working considering you can use a if(x == 1 || 2) statement. Is there a different way to do this? Or can you only use 1 value for case. (case 1, case 2, case 3, ect)
If you have to do that, you are better off with if() statements. switch is not designed to be used that way, and there is no easy way to check a wide range like that.