Null object: Difference between revisions
→{{header|Mathematica}}
No edit summary |
|||
Line 222:
FullForm[x]
</lang>
Both set x to be Null
<lang Mathematica>
SameQ[x,Null]]
</lang>
will give back True if and only if x is assigned to be Null. If x is empty (nothing assigned) this will return False.
To test if an object has something assigned (number, list, graphics, null, infinity, symbol, equation, pattern, whatever) one uses ValueQ:
<lang Mathematica>
Line 236 ⟶ 239:
True
</lang>
=={{header|MAXScript}}==
|