conditional classes for positive and negative numbers