On a conditional-alternative functional equation