title: Batch file : SET variable=string doesn't work
body: <p>I've this code : </p>
  
  <pre><code>if %Ret:~6,4% EQU %Year% (
  SET test=text
  ECHO %test%
  ) else (
  ECHO NO
  )
  </code></pre>
  
  <p>The code enters in the if loop but it returns always Echo is off! 
  I've pay attention to the space before and after the =.
  Any ideas?</p>