if statement compression