ELSEIF

ELSEIF

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
Language
If there is insufficient information on this page and you wish learn more about ELSEIF, please send an email to smallbasic@gmail.com. You can help to improve information about ELSEIF by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.