IN_CIDR

Checks if an IP address is in a given CIDR block.

Syntax 

IN_CIDR(ip_address, cidr_range)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": "127.0.0.1"
4
}
5
}

Formula

IN_CIDR(my_action.message, "10.0.0.0/8")

Output

false

Example 2

Input

1
{
2
"my_action": {
3
"message": "10.162.39.1"
4
}
5
}

Formula

IN_CIDR(my_action.message, "10.0.0.0/8")

Output

true

Sample Actions 

Event transform
My Action
Event transform
IN_CIDR
Event transform
My Action

Select an action to inspect.

You can also click "Copy actions" and paste them in your Tines story to see how they work.

Was this helpful?