title: Imacro : How to skip if TAG doesn't match any elements on a page?
body: <p>I'd like my code to break the loop in case TAG doesn't match any elements in page but this doesn't work.</p>
  
  <pre><code>var result = "";
  var counter = 1;
  while(true)
  {    
  var ret_code = iimPlay("CODE:TAG POS="+counter+" TYPE=A ATTR=HREF:http://www.xxx.com/index.php?topic=*.0 EXTRACT=HREF",60);
      if(ret_code&lt;0)
          break;
      s = iimGetLastExtract();    
      result += " "+s;    
      counter++;
  }
  </code></pre>
  
  <p>The TAG code keeps running again and again instead of stopping itself if it doesn't found any matched elements.</p>
  
  <p>Is it possible to use return code to do this and how?</p>
  
  <p>Thanks,</p>