# LibTmux.Server.IfShellAsync

- **Module:** LibTmux.Server
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Server.Execution.cs#L84
- **Page:** https://libtmux.org/reference/dotnet/libtmux-server-ifshellasync/

```
LibTmux.Server.IfShellAsync(request: IfShellRequest, cancellationToken: CancellationToken) -> Task
```

Runs one tmux command or another depending on a shell command.

## Parameters

- `request` (IfShellRequest) — What to test, and what to run either way.
- `cancellationToken` (CancellationToken) — Cancels the tmux command.
