merge #if with if()