C# If not (this) Or (this) or (this) - Multiple condition IF/OR
<p>I have a condition like:</p>

<pre><code> if (!(InRange1 || InRange2 || InRange3))
{
//Do Something
}
</code></pre>

<p>Each of the InRange Variables are boolean.  </p>

<p>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.  </p>

<p>Does it need to be written as </p>

<pre><code>if (!InRange1 || !InRange2 || !InRange3)
{
//do something
}
</code></pre>

<p>And, in either case I'm curious why the original statement doesn't work.  </p>