---
name: "mongoc_optional_value"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_optional_value"
---

# mongoc\_optional\_value(3)

## SYNOPSIS

```
bool
mongoc_optional_value (const mongoc_optional_t *opt);
```

Returns the value for a *mongoc\_optional\_t*.

## PARAMETERS

- •

  **opt**: A *mongoc\_optional\_t*.

## RETURNS

Returns the value that was set on the *mongoc\_optional\_t*. If no value was set, **false** is returned.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
