> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/n/null_object.md).

# Null object

The absence of a value is represented by *nil*

```ruby
var undefined          # initialized with an implicit nil
say undefined==nil     # true
say defined(nil)       # false
```

However, *nil* is not an object, so we can't call methods on it. Alternatively, Sidef provides the *null* object:

```ruby
var null_obj = null         # initialize with a null value
say null_obj.is_a(null)     # true
say defined(null_obj)       # true
```
