ELSEIF
ELSEIF
Alternative condition in an IF statement.
Example 1
foo = 2
if foo == 1
  print "one"
ELSEIF foo == 2
  print "two"
endifExample 2: using IF … ELSE … IF instead of ELSEIF
foo = 2
if foo == 1
  print "one"
else
  if foo == 2
    print "two"
  endif
endifCode 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