# is_v6

Checks whether an IP address has version number 6.

```tql
is_v6(x:ip) -> bool
```

## Description

The `is_v6` function checks whether the version number of a given IP address `x` is 6.

## Examples

### Check if an IP is IPv6

```tql
from {
  x: 1.2.3.4.is_v6(),
  y: ::1.is_v6(),
}
```

```tql
{
  x: false,
  y: true,
}
```

## See Also

* [`ip_category`](https://preview.docs.tenzir.com/375/375/reference/functions/ip_category.md)
* [`is_global`](https://preview.docs.tenzir.com/375/375/reference/functions/is_global.md)
* [`is_link_local`](https://preview.docs.tenzir.com/375/375/reference/functions/is_link_local.md)
* [`is_loopback`](https://preview.docs.tenzir.com/375/375/reference/functions/is_loopback.md)
* [`is_multicast`](https://preview.docs.tenzir.com/375/375/reference/functions/is_multicast.md)
* [`is_private`](https://preview.docs.tenzir.com/375/375/reference/functions/is_private.md)
* [`is_v4`](https://preview.docs.tenzir.com/375/375/reference/functions/is_v4.md)
* [Map data to OCSF](https://preview.docs.tenzir.com/375/375/tutorials/map-data-to-ocsf.md)