title: batch: if statement with string comparison always returns true
body: <pre><code>if "x%1" == "x" (
  goto :l2
  )
  :l2
  echo doskey %1&gt;&gt;startup.cmd
  </code></pre>
  
  <p>Tried with and without parentheses on both the condition and the goto, also tried without quotation marks and of course goto on the same line - it always returns true.</p>