I've got a program that compares 2 boolean values, say, conditionX, and conditionY.
Both are initially set to false, but after a series of switches at least one of them becomes true.
I need to test both conditionX and conditionY. If either one of them comes out as true, then the test returns true, but if both of them return false, the test returns false.
And here's the part I need help with. If both of them return true, the test MUST return FALSE.
And, here, I'm drawing a blank. I know the AND operator will only return true, if both are true, while the OR operator will return true if at least one of them returns true.
Is there an operator that will return false if both of them return true/false, but will return true if at least one of them is true?