Combine two conditions into one