title: cmd.exe: complex conditions?
body: <p>in DOS batch files, In an <code>IF</code> statement, is it possible to combine two or more conditions using AND or OR ? I was not able to find any documentation for that</p>
  
  <p><strong>Edit</strong> - <code>help if</code> and the MS docs say nothing about using more than one condition in an if.</p>
  
  <p>I guess a workaround for AND would be to do</p>
  
  <pre><code>if COND1 (
    if COND2 (
      cmd
    )
  )
  </code></pre>
  
  <p>but this is exactly what I'm trying to avoid.</p>