Handles 'matches' conditions.