The whole SELECT-CASE-ENDSELECT stetement is completely wrong and will not work in the present state. It will require a complete rewrite. Additionally, the IsInIPRange() UDF is also being used incorrectly as it will check all elements of the subnet array that is provided to it.

Please read the KiXtart Manual with regards to correct SELECT-CASE-ENDSELECT syntax and the IsInIPRange() header for correct usage.
Finally, please read the FAQ Forum with regards to 'How to use an UDF'.

code:
Select
Case isiniprange($ipaddress,'10.125.16.0/20')
$spServer='jcboe'
Case isiniprange($ipaddress,'10.125.32.0/20')
$spServer='alt'
EndSelect



[ 15. August 2003, 15:25: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.