> For the complete documentation index, see [llms.txt](https://daseldocs.tomwright.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daseldocs.tomwright.me/v1/usage/flags/null.md).

# Null

## Description

This flag tells dasel to output `null` instead of `ValueNotFound` errors.

## Usage

Pass the `-n`, `--null` flag to [select](/v1/usage/select.md) commands.

## Example

With the flag:

```
$ echo '[1]' | dasel -p json -n '.[1]'
null
```

Without the flag:

```shell
$ echo '[1]' | dasel -p json '.[1]'
Error: could not query node: could not find value: no value found for selector: .[1]: [1]
```
