Anonymous user
Null object: Difference between revisions
Add Neko
(→{{header|Swift}}: Update Swift entry to modern syntax and add another example) |
(Add Neko) |
||
Line 1,134:
1 HELLO
</lang>
=={{header|Neko}}==
<lang ActionScript>/**
<doc>
<p>Neko uses <i>null</i> for undefined variables,
and also as a programmer accessible value.</p>
<p>The <i>null</i> value can be treated as a boolean value with the
builtin $istrue, and tests as false.</p>
</doc>
*/
var n = null
if n == null $print("n is null\n")
if $not($istrue(n)) $print("and tests as boolean false\n")</lang>
=={{header|NetRexx}}==
|