How to deal with multiple conditions?