How about a local
```
int actionId = -1;
```
and then you just set the proper actionId in the if-conditions. After handling all of them you check if actionId has a valid value and if so you execute
```
CStereoscopicsManager::Get().OnAction(CAction(actionId));
```
and otherwise you execute
```
CStereoscopicsManager::Get().SetStereoMode(parameter);
```
That way you save the duplication of the actual command.