title: Can I have an IF block in DOS batch file?
body: <p>In a DOS batch file we can only have 1 line if statement body? I think I found somewhere that I could use <code>()</code> for an if block just like the <code>{}</code> used in C-like programming languages, but it is not executing the statements when I try this. No error message either. This my code:</p>
  
  <pre><code>if %GPMANAGER_FOUND%==true(echo GP Manager is up
  goto Continue7
  )
  echo GP Manager is down
  :Continue7
  </code></pre>
  
  <p>Strangely neither "GP Manager is up" nor "GP Manager is down" gets printed when I run the batch file.</p>