[thelist] Switch statement

Mark Howells mark at mountain.ch
Fri Jul 19 11:32:00 CDT 2002


> switch (hiscore) {
> case 100:
> addAGoldStarTo(jenny);
> }


> how do you do conditionals? iirc, you can't do 'case <= 40:' or can you?
> i don't think so.

Case(<=40)

should work, depending on which language you're using.

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list