Last updated 1 year ago
Was this helpful?
The absence of a value is represented by nil
However, nil is not an object, so we can't call methods on it. Alternatively, Sidef provides the null object:
var undefined # initialized with an implicit nil say undefined==nil # true say defined(nil) # false
var null_obj = null # initialize with a null value say null_obj.is_a(null) # true say defined(null_obj) # true