5.6. Null

The null value represents nothing.

Note

The null value can only be assigned to nullable types.

5.6.1. Syntax

Null ::=  "null"

5.6.1.1. Examples

# null can only be assigned to nullable variables
woman:Person? = null


# nullable types can only be operated on inside a null check
if woman !is null
  puts(woman.surname)
end