if statement order