---
title: IS_IPV4
url: https://www.tines.com/docs/formulas/functions/is-ipv4/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# IS_IPV4

*[View on tines.com](https://www.tines.com/docs/formulas/functions/is-ipv4/)*

Checks if a text value is a valid IPV4 address.

**Categories:** IP Addresses, Text

## Syntax

```
IS_IPV4(text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "192.168.0.1"
  }
}
```

Formula:

```
IS_IPV4(my_action.message)
```

Output:

```json
true
```

### Example 2

Input:

```json
{
  "my_action": {
    "message": "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
  }
}
```

Formula:

```
IS_IPV4(my_action.message)
```

Output:

```json
false
```

## Sample actions

```json
{
  "standardLibVersion": "45",
  "actionRuntimeVersion": "6",
  "agents": [
    {
      "disabled": false,
      "name": "IS_IPV4",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "IS_IPV4": "=IS_IPV4(\"192.168.1.1\")"
        }
      },
      "position": {
        "x": 0,
        "y": 390
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "recordType": null,
      "recordWriters": [],
      "form": null,
      "createdFromTemplateGuid": null,
      "createdFromTemplateVersion": null,
      "originStoryIdentifier": "self-hosted:12c8bb2053e50b3ca4b4f45d1a3b7563:826eff0aed4e378159e8ef888a863060"
    }
  ],
  "links": [],
  "diagramNotes": []
}
```
