Split will split the ip at the dots and trim will remove leading or tailing spaces.
So if your ip is 192.168.1.1 you will get 192 and 168 and 1 and 1seperate.
The first two octets are fully filled but the third is only one character and will be seen by kix as a 1 with two spaces in front of it.

This:
Code:

$third = Trim(Split(@ipaddress0,".")[2])



Will give you the third octet because it goes from 0 to 3 so [2] would be the third piece.
Just put ?$third and maybe sleep 5 at the bottom of the script to see the value of $third and let kix wait for 5 sec so you can actually see the output.


Edited by R2D2 (2003-11-25 10:04 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.