# LibTmux.IfShellRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/IfShellRequest.cs#L4
- **Page:** https://libtmux.org/en/dotnet/latest/reference/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.
- `ToCommand` (method): Returns a conditional request as one tmux command.
