If else block creating problem
<p>I have a piece of code where in I have an if block which when satisfied the flow goes into it and in there are nested if and else, if it does not satisfies any of the if block it should go into the else block but the problem i am facing is that it satisfies one if block and then goes into else as well. this is creating redundancy in my code.
it like this</p>

<pre><code> if(condition = true)
 {
    if(condition1 == true)
       {}
    if(condition2 == true)
       {}
    else
       {}
 }
</code></pre>

<p>Now it satisfies condition 1 and then after performing if block operations goes into else also.
Please help. Code is in C#</p>
