I have a conditional if statement like this

```
if ((a && (b || c)) ||
     (b && (a || c))) {
}

```

basically what I'm trying to achieve is that I can only have one option true, but two is not ok!

Can it be more simplified, looks redundant to me!
Or should I extract it to a function?

*edit*

```
if (a && !b && !c) // process a
if (b && !a && !c) // process b
if (c && !a && !b) // process c
if (!a && !b && c!) // none present exception
else {} // more than one case exception

```