# env_var_is_set

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/utils/env/env_var_is_set)

Check if an environment variable is set.

## Signature

```python
env_var_is_set(
    env_var: str,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `env_var` | `str` | Yes | The name of the environment variable. |

## Returns

`bool`

`True` if the environment variable is set, `False` otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/5069b326c53069ec85a7e1d914c6873feb8d0cfa/libs/core/langchain_core/utils/env.py#L9)