# Server.environmentValue(_:in:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Environment.swift#L63
- **Page:** https://libtmux.org/en/swift/latest/reference/server-environmentvalue(_-in-)/

```
Server.environmentValue(_:in:)(name: String, in: EnvironmentScope) -> String?
```

What one variable is set to, or `nil` when it is unset or marked for removal.

Read from the listing rather than by asking for the name: tmux answers a
name it does not know with a nonzero status and a message, and this
library reserves throwing for when no answer exists at all.

## Raises

- `TmuxError`
