# tmux_select:try_where/2

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

```
try_where/2
-spec try_where(criteria(), t(Row)) ->
                   {ok, t(Row)} | {error, map()}
                   when Row :: tmux_model:row().
```

Apply the same local criteria and coverage checks as `where/2`, returning tagged validation or evaluation errors. It does not catch arbitrary application callback exceptions and never performs tmux I/O.

## Parameters

- `Criteria` (`criteria()`)
- `Selection` (`t(Row)`)
