Skip to main content
Version: v4.24

ip

Casts an expression to an IP address.

ip(x:string) -> ip

Description

The ip function casts the provided string x to an IP address.

Examples

Cast a string to an IP address

from {x: ip("1.2.3.4")}
{x: 1.2.3.4}

See Also

int, uint, float, time, string