combined if conditions in one statement