if( $checkvalue > $value1 and $checkvalue <= $value2)