Null object: Difference between revisions

Content added Content deleted
(Added BBC BASIC)
Line 99:
DIM s{a%, b#, c$}
IF !^a() = 0 PRINT "a() is definednull" ELSE PRINT "a() is not definednull"
IF !^b() = 0 PRINT "b() is definednull" ELSE PRINT "b() is not definednull"
IF !^s{} = 0 PRINT "s{} is definednull" ELSE PRINT "s{} is not definednull"
IF !^t{} = 0 PRINT "t{} is definednull" ELSE PRINT "t{} is not definednull"</lang>
'''Output:'''
<pre>
a() is definednot null
b() is not definednull
s{} is definednot null
t{} is not definednull
</pre>