Null object: Difference between revisions

Content added Content deleted
imported>LongPtrCall
(Added GDScript implementation.)
Line 1,189: Line 1,189:


=={{header|langur}}==
=={{header|langur}}==
Null can be compared for directly, using equality operators, or can be checked with the isNull() function. Operators ending with a ? mark propagate null. A null in an expression test is a non-truthy result.
Null can be compared for directly, using equality operators. Operators ending with a ? mark propagate null. A null in an expression test is a non-truthy result.

{{works with|langur|0.10}}
Prior to 0.10, multi-variable declaration/assignment would use parentheses around variable names and values.


<syntaxhighlight lang="langur">val .x, .y = true, null
<syntaxhighlight lang="langur">val .x, .y = true, null