# LibTmux.Selection.exists?/2

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/selection.ex#L168
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-selection-exists-question-2/

```
exists?(selection, criteria \\ [])
@spec exists?(t(), LibTmux.Filter.input()) :: boolean()
```

Returns true on the first matching observed item.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `selection` (`t()`)
- `criteria` (`LibTmux.Filter.input()`)
  Default: `[]`.
