in reply to Re: Range check with unordered limits
in thread Range check with unordered limits

$inRange = ($a <=> $x) != ($b <=> $x); looks good too.