Dax,
I mean you no disregard, but I get the feeling you have a fear of UDFs. They are certainly worth taking the time to understand.

I think you are dealing with simple subnetting and don't want the complex calculations that Howard and Jens are proposing. You also haven't divulged what version of KiX you use so some of the code proposed may not be usable.

Don't lose sight of the fact that the @IPAddress0 macro returns a string and as such, < and > compares are not straight forward. Better to use the Val() function to convert each octet and compare on it. These principles can be used in a general application, but I understand you are just talking about a "couple of managers". If I understand you right, you put a cookie on their C: drive which I assume then is a laptop. I don't like cookies. They have a habit of disappearing.

Why could you not just use the computer name (@WKSTA) to control the direction of the script if this IP thingy is too hard a chew?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.