ELIF

ELIF

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