Ternary operator in foreach
<p>I am currently struggling with about 5 nested if-statements and its becoming quite confusing to look over all of them.</p>

<p>So, I thought about adding ternary operators instead of ifs for simple checks, see</p>

<pre><code>foreach (String control in controls)
{
 if (!control.Equals(String.Empty))
 {
   // Do some stuff
   foreach (Int32 someStuff in moreStuff)
   {
    if (!someStuff.Equals(0))
    {
     // More stuff with more if equals
    }
   }
 }
</code></pre>

<p>Thats how it looks like right now. Thats my idea on how to make it look a little bit more nice:</p>

<pre><code>foreach (String control in controls)
{
 (control.Equals(String.Empty)) ? continue : null;
 // Do some stuff
 foreach (Int32 someStuff in moreStuff)
 {
  (someStuff.Equals(0)) ? continue : null;
  // More stuff
 }
}
</code></pre>

<p>So, the questions are: 1. is is bad programming to solve it like this and 2. will it work the way I want?</p>
