title: Batch for loop string comparision
body: <pre><code>SET CLIENTS=blah1:blah2
  
  for %%x in (%CLIENTS::= %) do (
  SET client=%%x
  echo %client%;
  if "%1"==%client% goto end
  )
  :end
  </code></pre>
  
  <p>I would expect to compare blah1 and %1 first and blah2 and %2 second.
  However, the %client% will only be assigned with blah2. Any ideas how to resolve this issue?</p>