# libtmux.Format.__bool__

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/d2a146c9a045437b92013d65943b7ac70013fa24/src/libtmux/formats.py#L339
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-format-__bool__/

```
libtmux.Format.__bool__(self) -> bool
```

Return whether the format is non-empty, as for ``str``.

## Examples

```python
>>> bool(Format(""))
False
```
