Null object: Difference between revisions
Content added Content deleted
m (→{{header|C}}: clarification. C and C++ have differing ideas of what exactly NULL is. And in C it's a void *) |
(added PowerShell) |
||
Line 293: | Line 293: | ||
if (is_null($x)) |
if (is_null($x)) |
||
echo "\$x is null\n";</lang> |
echo "\$x is null\n";</lang> |
||
=={{header|PowerShell}}== |
|||
In PowerShell the automatic variable <code>$null</code> represents a null value. |
|||
<lang powershell>if ($object -eq $null) { |
|||
... |
|||
}</lang> |
|||
=={{header|Python}}== |
=={{header|Python}}== |