Can I use <= or >= in Switch loops?

Hello I'm trying to make a simple switch loop that if the number is less than 100 then it does something and if it is more than 100 it does something else. My cases look like this:


1
2
            switch(random){
                case random =>100:

case random =<200: default:
I have all the variables correctly declared ETC I just want to know if what I am doing is even possible. Thanks have a good night.
Not as far as I'm aware.

An if statement would be better in this situation.

EDIT: P.S. - Not sure if it's wording or you may be getting confused but please note that a switch is not a loop.
Last edited on
Topic archived. No new replies allowed.