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

Mar 30, 2012 at 8:22am
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.
Mar 30, 2012 at 8:29am
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 Mar 30, 2012 at 8:30am
Topic archived. No new replies allowed.