# tmux_select:one_or_none/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_select.erl#L248
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_select-one_or_none-1/

```
one_or_none(Selection)
-spec one_or_none(t(Row)) ->
                     {ok, Row | none} | cardinality_error()
                     when Row :: tmux_model:row().
```

Return the sole current row, {ok, none} on absence, or a multiple-match error. Performs no I/O.

## Parameters

- `Selection` (`t(Row)`)
