I need to test to see if exactly two out of three booleans are true.
Something like this:
if ((a && b && !c) || (a && !b && c) || (!a && b && c)) {
// success
}
Is this the most direct way to go about this? Does anyone know of a shortcut/shorthand?