CASE
CASE expr
Branch condition for a SELECT statement.
See SELECT for more information and examples.
Example
1 ' Change to see what happens
x = 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
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
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
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
If there is insufficient information on this page and you wish learn more about CASE,
please send an email to smallbasic@gmail.com. You can help to improve information about
CASE by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.