# LibTmux.IfShellRequest.IfShellRequest

- **Module:** LibTmux.IfShellRequest
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Requests/IfShellRequest.cs#L12
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-ifshellrequest-ifshellrequest/

```
LibTmux.IfShellRequest.IfShellRequest(shellCommand: string, thenCommand: IReadOnlyList<string>)
```

Initializes a conditional command.

## Parameters

- `shellCommand` (string): The shell command whose success decides.
- `thenCommand` (IReadOnlyList<string>): The tmux command run when it succeeds.
