title: Can we use IF condition inside the for loop in batch scripting?
body: <pre><code>set STR1= FINISHED
  
  for /f &quot;tokens=4,* delims=:&quot; %a in (filename.txt) do (if %b == %STR1% (echo &quot;SUCCESS&quot;) else (echo %b))
  </code></pre>
  <p>I am using the above code , but unable to loop through ,it's simply doing echo %b.</p>
  <p>filename.txt :</p>
  <p>12:38:32,249 INFO  [SoapUIRunner] Finished running SoapUI testcase [Couple Order], time taken: 14124ms, status: FAILED</p>
  <p>12:38:34,441 INFO  [SoapUIRunner] Finished running SoapUI testcase [Ping], time taken: 2136ms, status: FINISHED</p>