c# Can I do this for "if"? or anyother way to doing sth like this?
<pre><code>if ((((a &gt; 0) &amp;&amp; ((b &gt; 0) || (c&gt; 0) || (d&gt; 0) || (e&gt; 0))) ||
((a1 &gt; 0) &amp;&amp; ((b&gt; 0) || (c &gt; 0) || (d &gt; 0) || (e&gt; 0))) ||
((a2 &gt; 0) &amp;&amp; ((b&gt; 0) || (c&gt; 0) || (d&gt; 0) || (e&gt; 0))) ||
((a3&gt; 0) &amp;&amp; ((b&gt; 0) || c&gt; 0) || (d&gt; 0) || (e&gt; 0)))) &amp;&amp; 
((75.5 &gt; d1 &amp;&amp; d1 &gt; 74.5) || (75.5 &gt; d2 &amp;&amp; d2 &gt; 74.5)))
{
    //do something
}
</code></pre>

<p>just want to make the condition of the IF as the following:</p>

<p>(a > 0 and( b > 0 or c > 0 or d > 0 or e > 0)) and ((d1&lt; 75.5 and d1>74.5 ) or (d2&lt;75.5 and d2>74.5))
or
(a1 > 0 and( b > 0 or c > 0 or d > 0 or e > 0)) and ((d1&lt; 75.5 and d1>74.5 ) or (d2&lt;75.5 and d2>74.5))
or
(a2 > 0 and( b > 0 or c > 0 or d > 0 or e > 0)) and ((d1&lt; 75.5 and d1>74.5 ) or (d2&lt;75.5 and d2>74.5))
or
(a3 > 0 and( b > 0 or c > 0 or d > 0 or e > 0)) and ((d1&lt; 75.5 and d1>74.5 ) or (d2&lt;75.5 and d2>74.5))</p>

<p>for the same conditions for a1 to a3 </p>

<p>cos I have created a for loop before these code to do some checking , and those a,a1,a2,a3,b,c,d,e are the ints which have added 1 under some special condition in the for loop, and i just want to do some further grouping in this if() and just wonder if this multi "Ands" and "Ors" will work or not</p>
