# LibTmux::Model::WindowSelection.single-or-nil

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Selection.rakumod#L94
- **Inherited from:** LibTmux::Selection::Selection
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-windowselection-single-or-nil/

```
method single-or-nil()
```

Return Nil for zero members, the sole member for one, otherwise throw.

Return Nil for zero members, the sole member for one, otherwise throw.
