Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Null-object/Neko/null-object.neko
Normal file
12
Task/Null-object/Neko/null-object.neko
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
<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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue