Skip to main content
Version: Next

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

subnet, int, uint, float, time, string