ENDIF
ENDIF
ENDIF ends an if statement. For more information see IF.
Example
foo = 1
if foo == 1 then
  print "one"
endifCode samples using ENDIF
    
      100lines.bas  
      2048.bas  
      3d wire cube v1.bas  
      3d wire cube.bas  
      3dtictac.bas  
      3dttt.bas  
      3dttt.bas  
      4tune.bas  
      7gables.bas  
      agendus.bas  
      arc_ui.bas  
      bairstow.bas  
      bezier's autograph book.bas  
      bezierbounce.bas  
      biorythms.bas  
      blackbox.bas  
      Blackbox.bas  
      boing.bas  
      bopit.bas  
      bpf1.bas  
      bpf2.bas  
      btn 21.bas  
      bubbles and triangles.bas  
      calc.bas  
      Calendar.bas  
      calendar.bas  
      cgi_counter.bas  
      character map.bas  
      Charmap.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