This bit of code not working properly.

? "" + $OCT4 ? returns "131" - correct.

this is between 50 and 239 so should be DHCP range.. But it always says its not. Help?

code:

$SERVER = "0"
$OCT4 = LTRIM(SUBSTR(@IPAddress0, 13, 3))
? "" + $OCT4 ?
IF $OCT4 <= "50" AND $OCT4 >= "239"
? "MACHINE IN DHCP RANGE"
ELSE
? "MACHINE NOT IN DHCP RANGE"
$SERVER = "1"
ENDIF


I use the $server variable later for various tasks.
Thanks