I'm running this from a login script.

I will not be using ADSI nor will we be messing with DNS.

I have worked out some test samples, the first works the second doesn’t. Your input is appreciated.
code:
Working

$LOC = SUBSTR ("@WKSTA",6,4)

IF $LOC >= "M74" AND $LOC <= "M88"
? "IN RANGE"
ELSE
? "OUT OF RANGE"
ENDIF

As soon as I add other ranges to check it give me an error

$LOC = SUBSTR ("@WKSTA",6,4)
IF $LOC >= "M74" AND $LOC <= "M88"
IF $LOC >= "M130" AND $LOC <= "M144"
IF $LOC >= "M146" AND $LOC <= "M160"
? "IN RANGE"
ELSE
? "OUT OF RANGE"
ENDIF
ELSE
? "OUT OF RANGE"
ENDIF
ELSE
? "OUT OF RANGE"
ENDIF

Thanks,
_________________________
Dave Melbourne, FL