Check for inclusion in a range