I have a condition like:
if (!(InRange1 || InRange2 || InRange3))
{
//Do Something
}
Each of the InRange Variables are boolean.
The desired behavior is if anyone of those values is False I want to do something, but it is not working that way. All of the values have to be false before the event is triggered.
Does it need to be written as
if (!InRange1 || !InRange2 || !InRange3)
{
//do something
}
And, in either case I'm curious why the original statement doesn't work.