# envExists

Description: envExists cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Environment/env-exists.mdx

### Signature

```solidity
function envExists(string calldata name) external view returns (bool result);
```

### Description

Gets the environment variable `name` and returns true if it exists, else returns false.
