Dear,

An important issue is the format of macro @ipaddress0.
First we strip the first parts and verify it.

code:

$ip=@ipaddress0 ; format: 'xxx.xxx.xxx.xxx' f.e. ' 10.198. 0. 55'
SELECT
CASE (Substr("$ip",1,12) = " 10.197. 0.")
? "in range '10.197.0' server1"
CASE (Substr("$ip",1,12) = " 10.198. 0.")
? "in range '10.198.0' server2"
CASE 1
? "unknown IP "+$ip
ENDSELECT


greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA