def _is_in_range(value, min_value, max_value):
 if (value is None):
  return False
 if ((not (min_value or max_value)) or (min_value == max_value == value)):
  return True
 if (((not min_value) or (value > min_value)) and ((max_value is None) or (value <= max_value))):
  return True
 return False

def _is_in_range ( value , min_value , max_value ) : if ( value is None ) : return False if ( ( not ( min_value or max_value ) ) or ( min_value == max_value == value ) ) : return True if ( ( ( not min_value ) or ( value > min_value ) ) and ( ( max_value is None ) or ( value <= max_value ) ) ) : return True return False
help function to check if the range matches with value if min_value is none the max_value determines if the range matches .