title: Batch String Comparison with Symbols
body: <p>How do I do a string comparison with a string containing symbols?
  In my particular case, I am trying to compare a string to "%1" (including quotations).</p>
  
  <p>ex:</p>
  
  <pre><code>if "%var%" neq '"%1"' ( echo %var% )
  </code></pre>
  
  <p>I have tried various forms, my latest looks like:</p>
  
  <pre><code>if "%var%" neq """%%1"""
  </code></pre>