I'm trying to figure out how to use IsInSubnet() when I have a list of more than one subnet to test for. It works fine when I'm using just one network ID, such as:
Code:
 IsInSubnet($IP,$NetworkID)  



Looking at the example, I then tried

Code:


$NetworkID[0] = "10.1.4.1/22"
$NetworkID[1] = "10.1.3.0/24"



and the following to evaluate $answer...
Code:

$Answer = ISINSUBNET($IP,$NetworkID)
$Answer = ISINSUBNET($IP,$NetworkID,,1)



Returns Error in expression, on the line with $NetworkID[1]

So I think I just have the syntax wrong. How do I list multiple subnets?