title: windows batch SET inside IF not working
body: <p>when I'm running this script (from a .bat file):</p>
  
  <pre><code>set var1=true
  if "%var1%"=="true" (
    set var2=myvalue
    echo %var2%
  )
  </code></pre>
  
  <p>I always get:</p>
  
  <pre><code>ECHO is on.
  </code></pre>
  
  <p>Meaning the <code>var2</code> variable was not really set.
  Can anyone please help me understand why?</p>