NIL

a = NIL

Sets a variable to nil. NIL is used to mean ‘not set’ as distinct from having a number set to 0.

Example 1

b = NIL
print b   ' Output: Nil

Example 2

b = NIL
if(b == NIL) then print "b is not set"

' Output: b is not set
Code samples using NIL
System
If there is insufficient information on this page and you wish learn more about NIL, please send an email to smallbasic@gmail.com. You can help to improve information about NIL by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.