ELSEIF
ELSEIF
Alternative condition in an IF statement.
Example 1
2
foo = if foo == 1
print "one"
ELSEIF foo == 2
print "two"
endif
Example 2: using IF … ELSE … IF instead of ELSEIF
2
foo = if foo == 1
print "one"
else
if foo == 2
print "two"
endif
endif
Code samples using ELSEIF
agendus.bas
anball 1.0.bas
B+B.bas
blackbox.bas
Blackbox.bas
bowling7.bas
bubbles and triangles.bas
calc.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
coordplot.bas
dmsareaplot.bas
dmsareareadmd.bas
fireworks.bas
fireworks.bas
fractal_fern.bas
Fractal_Sierpinski_Triangle_v1.bas
g1 Life.bas
gaussj.bas
gputmalc.bas
gridareaplot.bas
GUI RPSLS v2.bas
gui_cal.bas
leastq.bas
mastermind.bas
mine sweeper v4sb.bas
navigation.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 ELSEIF,
please send an email to smallbasic@gmail.com. You can help to improve information about
ELSEIF by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.