Even though Jens' example shows an IP for NetworkID, you can substitute with a var. I did a quick test using:

$ClientName=%clientname%
isinsubnet('10.0.0.1','$ClientName','255.0.0.0')

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.