Null object: Difference between revisions

m
→‎{{header|ooRexx}}: upperclass -> uppercase :-)
m (→‎{{header|ooRexx}}: upperclass -> uppercase :-))
Line 621:
if a[i] == .nil then say "Item" i "is missing"
</lang>
Uninitialized ooRexx variables do not evaluate to .nil, but rather the character string name of the variable (all upperclassuppercase). The var() built-in function allows variable validity to be tested:
<lang ooRexx>
if \var("INPUT") then say "Variable INPUT is not assigned".
</lang>
 
 
=={{header|Oz}}==
2,299

edits