# libtmux.query:one-or-none

- **Package:** libtmux/query
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/query.lisp#L856
- **Public owner:** libtmux.query
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-query-one-or-none/

```
(one-or-none values &key (max-items +default-max-selection-items+))
```

Return the only item and T, or NIL,NIL when finite VALUES is empty.
Signal AMBIGUOUS-MATCH for more than one item after validating the full bounded
container. A singleton containing NIL returns NIL,T.

## Parameters

- `values`
- `max-items?`

## Guides

Pages that discuss `one-or-none`.

- [Native queries](/en/lisp/latest/guides/queries/)
