GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | CASE

Edit History

CASE

CASE expr

Home > Reference > Language

Branch condition for a SELECT statement.

See SELECT for more information and examples.

Example

x = 1                 ' Change to see what happens
select case x
    case 1
        print "x is 1"
    case 2,3,4
        print "x is 2,3 or 4"
    case else
        print "x is not 1, 2, 3 or 4"
end select
Code samples using CASE
002 numeric variables.bas   2048.bas   7gables.bas   B+B.bas   bairstow.bas   bb2fork smurf.bas   biorythms.bas   blackbox.bas   Blackbox.bas   block.bas   bolmo.bas   bowling7.bas   calc.bas   Capitol pal test.bas   checkers.bas   clock.bas   clock.bas   conrec-sb-v01.bas   coordplot.bas   dia de una fecha.bas   dmsareaplot.bas   dmsareareadmd.bas   doodle.bas   Eliza.bas   eliza.bas   ezinvaders.bas   filemanager.bas   first factors mga.bas   g1 Life.bas  
Language
AND   AS   BAND   BG   BOR   BYREF   CALL   CASE   CATCH   CONST   DECLARE   DEF   DO   ELIF   ELSE   ELSEIF   END   END TRY   ENDIF   EQV   EXIT   FALSE   FI   FOR   FUNC   GOSUB   GOTO   IF   IFF   IMP   IN   LABEL   LET   LIKE   LOCAL   LSHIFT   MDL   MOD   NAND   NEXT   NOR   NOT   ON   OR   REM   REPEAT   RETURN   RSHIFT   SELECT   STEP   STOP   SUB   THEN   THROW   TO   TRUE   TRY   UNTIL   USE   USG   USING   WEND   WHILE   XNOR   XOR  
This page was last edited on Tue, 19 Sep 2023 15:00:20 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.