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 | ELIF

Edit History

ELIF

ELIF

Home > Reference > Language

Short for ELSEIF.

Example 1

foo = 2
if foo == 1
  print "one"
ELIF foo == 2
  print "two"
fi

Example 2: using IF … ELSE … IF instead of ELIF

foo = 2
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   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   lander.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 Mon, 30 Jan 2023 20:25:52 +0100 | 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.