# LibTmux.IfShellRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Requests/IfShellRequest.cs#L4
- **Page:** https://libtmux.org/reference/dotnet/libtmux-ifshellrequest/

Describes one <c>if-shell</c> invocation.

## Members

- `IfShellRequest` (method) — Initializes a conditional command.
- `ShellCommand` (property) — Gets the shell command whose success decides.
- `ThenCommand` (property) — Gets the tmux command run when it succeeds.
- `ElseCommand` (property) — Gets the tmux command run when it fails, when any.
- `Background` (property) — Gets whether tmux runs the shell command without waiting.
- `TargetPane` (property) — Gets the pane the commands run against.
