---
name: "nng_stat_bool"
section: "3"
platform: "linux"
package: "libnng-dev"
version: "1.10.1-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nng_stat_bool"
---

# nng\_stat\_bool(3)

get statistic Boolean value

## NAME

nng\_stat\_bool - get statistic Boolean value

## SYNOPSIS

```
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
bool nng_stat_bool(nng_stat *stat);
```

## DESCRIPTION

The `nng_stat_bool()` function returns the Boolean value for the statistic *stat*. Otherwise, if the statistic is not of Boolean type, the result is indeterminate. See `nng_stat_type()` for a description of statistic types.

## RETURN VALUES

The boolean value associated with *stat*.

## ERRORS

None.

## SEE ALSO

[libnng(3)](/libnng/3.md), [nng\_stats\_get(3)](/nng_stats_get/3.md), [nng\_stat\_type(3)](/nng_stat_type/3.md), [nng\_stat\_unit(3)](/nng_stat_unit/3.md), [nng\_stat\_value(3)](/nng_stat_value/3.md), [nng\_stat(5)](/nng_stat/5.md), [nng(7)](/nng/7.md)
