# LibTmux.IfShellRequest.IfShellRequest

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Requests/IfShellRequest.cs#L12
- **Page:** https://libtmux.org/en/csharp/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.
