ELIF
ELIF
Short for ELSEIF.
Example 1
2
foo = if foo == 1
print "one"
ELIF foo == 2
print "two"
fi
Example 2: using IF … ELSE … IF instead of ELIF
2
foo = if foo == 1
print "one"
else
if foo == 2
print "two"
fi
fi
Code samples using ELIF
003 conditional branching.bas
004 loops.bas
005 challenge.bas
006 arrays+.bas
100lines.bas
2048.bas
2048.bas
3d wire cube v1.bas
3d wire cube.bas
another look at trig functions.bas
bolmo.bas
bowling7.bas
btn 21.bas
bulls and cows.bas
cube3d.bas
evdemo.bas
filemanager.bas
fire.bas
full screen lava.bas
g2 Life.bas
g3 Life.bas
g4 Life.bas
g5 Life.bas
g6 Life.bas
gray scale test.bas
gui_cal.bas
hangman v2.bas
irc-bot.bas
klotski_solver.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 ELIF,
please send an email to smallbasic@gmail.com. You can help to improve information about
ELIF by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.