IN_CIDR

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

Syntax 

IN_CIDR(ip_address, cidr_range)

Examples 

Example 1

Input

{
  "my_action": {
    "message": "127.0.0.1"
  }
}

Formula

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

Input

{
  "my_action": {
    "message": "10.162.39.1"
  }
}

Formula

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

Output

true