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

Edit History

ELSEIF

ELSEIF

Home > Reference > Language

Alternative condition in an IF statement.

Example 1

foo = 2
if foo == 1
  print "one"
ELSEIF foo == 2
  print "two"
endif

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

foo = 2
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   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   palm_cli.bas   palmcli.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:36:23 +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.