> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

## `assertFalse`

### Signature

```solidity
function assertFalse(bool data) internal;
```

```solidity
function assertFalse(bool data, string memory err) internal;
```

### Description

Asserts `data` is false.

Optionally includes an error message in the revert string.

### Examples

```solidity
bool failure = contract.fun();
assertFalse(failure);
```

### SEE ALSO

* [`assertTrue`](/reference/forge-std/assertTrue.mdx)
