$subnet = InetAddress("x.y.z.0")
$mask = 24
if ($node.ipAddress.isInSubnet($subnet, $mask)) {
return 1; // match
} else {
return 0; // no match
}
I got this, but it's not working. Can you please modify it?
$mask = 24
if ($node.ipAddress.isInSubnet($subnet, $mask)) {
return 1; // match
} else {
return 0; // no match
}
I got this, but it's not working. Can you please modify it?