There is no need for the double =. Like Les already said = = does a case sensitive =. An IP address has no upper or lower case so = will work just great.

Can you use code tags the next time you post some code? It is much easier to read a script that way especially when it is a larger script then you have now because the formatting gets preserved
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.