try

if val($oct4) >= 50 and val($oct4) <= 239

this statment will be true only if the value of $oct4 is greater than or equalto 50 and less than or equal to 239.


Bryce