|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#8
|
||||||
|
||||||
|
Quote:
There is no "switch" command. There is a SELECT...CASE...ENDSELECT structure, which does the same thing. Ie: SELECT counter CASE 0 TO 100 'do stuff CASE 101 TO 200 'do other stuff CASE 201 TO 255 'do even more other stuff CASE ELSE 'stuff to do if none of the previous cases match ENDSELECT There's other things you can put after CASE also (such as a single number or an operator and a number (ie >5)), but the above code is the basics. --Rob |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PBASIC language syntax | WizardOfAz | Programming | 14 | 30-04-2003 10:23 |
| PBasic 2.5 vs. 2.0 | Anthony Kesich | Programming | 6 | 09-02-2003 22:06 |
| Broken PBASIC 2.5 Complier? | Mike Yan | Programming | 12 | 01-02-2003 09:11 |
| RoboEmu 1.09 (supports PBASIC 2.5) | rbayer | Programming | 22 | 21-01-2003 17:22 |
| PBASIC 2.5 answer from Parallax | JasonS | Programming | 6 | 07-01-2003 19:21 |