# parseBool

Description: parseBool cheatcode documentation

Note: This document was authored using MDX

  Source: https://github.com/NomicFoundation/hardhat-website/tree/main/src/content/docs/docs/reference/cheatcodes/Utilities/parse-bool.mdx

{/* This document contains content copied/adapted from the Foundry Book (MIT licensed). See LICENSE in the parent directory. */}

### Signature

```solidity
function parseBool(
  string calldata stringifiedValue
) external pure returns (bool parsedValue);
```

### Description

Parses the value of `string` into `bool`

### Examples

```solidity
string memory boolAsString = "false";
bool stringToBool = vm.parseBool(boolAsString); // false
```
