title: NSIS multiple if conditions
body: <p>Can I implement the following C code inside NSIS script?</p>
  
  <p><strong>C code</strong></p>
  
  <pre><code>if ( (value1 == 1) &amp;&amp; ((value2 == "text") || (value3 &gt;= 100)) )
    //Do something
  </code></pre>
  
  <p><strong>NSIS code</strong></p>
  
  <pre><code>${If} $value2 == "text"
  ${OrIf} $value3 &gt;= 100
  </code></pre>
  
  <p>But I don't think on the above condition I can add another <code>${AndIf}</code> statement. Instead I need to do the following:</p>
  
  <pre><code>${If} $value1 == 1
      ${If} $value2 == "text"
      ${OrIf} $value3 &gt;= 100
          //Condition success
      ${EndIf}
  ${Else}
      //Conditon failed
  ${EndIf}
  </code></pre>
  
  <p>Am I correct or is there any better way to do it?</p>