## `isPersistent`

### Signature

```solidity
function isPersistent(address account) external view returns (bool persistent);
```

### Description

Returns whether an account is marked as persistent via [`makePersistent`](/reference/cheatcodes/make-persistent).

### Parameters

| Parameter | Type      | Description                    |
|-----------|-----------|--------------------------------|
| `account` | `address` | The account to check           |

### Returns

| Parameter    | Type   | Description                              |
|--------------|--------|------------------------------------------|
| `persistent` | `bool` | `true` if the account is persistent      |

### Examples

```solidity [test/IsPersistent.t.sol]
function testIsPersistent() public {
    // By default, sender and test contract are persistent
    assertTrue(vm.isPersistent(msg.sender));
    assertTrue(vm.isPersistent(address(this)));
    
    // Other addresses are not
    address random = makeAddr("random");
    assertFalse(vm.isPersistent(random));
}
```

### Related Cheatcodes

* [`makePersistent`](/reference/cheatcodes/make-persistent) - Mark accounts as persistent
* [`revokePersistent`](/reference/cheatcodes/revoke-persistent) - Remove persistent status
