# Server.environmentValue(_:in:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Environment.swift#L62
- **Page:** https://libtmux.org/reference/swift/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`
