# types.IfShellOptions

- **Module:** types
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** interface
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/types.ts#L428
- **Page:** https://libtmux.org/en/ts/latest/reference/types-ifshelloptions/

How the condition is decided: by running it, or by expanding it.

By default tmux runs it with `/bin/sh` and reads the exit status. Asked to
treat it as a format instead, tmux expands it and counts it true when the
result is neither empty nor zero — no shell, and no process.

## Members

- `otherwise` (property): Command to run when the condition fails.
- `format` (property): Treat the condition as a tmux format rather than a shell command.
- `target` (property)
