Object Demo
Last changed: -128.227.155.55

.

What information is available about an Object?

The Object type has the following members:

Object Equals(Object obj)
Determine whether this object is equal to another object
Object IfNotNull(Block block)
If this object is not null, answer the result of evaluating the block; else answer null
Object IfNotNullElse(Block notNullBlock, Block nullBlock)
If this object is not null, answer the result of evaluating the first block; else answer the result of evaluating the second block
Object IfNull(Block block)
If this object is null, answer the result of evaluating the block; else answer null
Object IfNullElse(Block nullBlock, Block notNullBlock)
If this object is null, answer the result of evaluating the first block; else answer the result of evaluating the second block
Object IsNull
Answer true if this object is null; else false
String ToString
Answer this object converted to a string
Type Type
Answer the Type of this object

Examples

IsNull

        null.IsNull
true

This obviously begs the question, is IsNull the only member which can be called on null? Everything else returns "Error evaluating expression: No such property or function: UndefinedObject.<MemberName>"

Is null a WikiTalkWellKnownObject?

        "".IsNull
false