title: loop imacro with js, pause for 20seconds, then start again
body: <p>I have the following js code but cant figure out how to pause it for 20 seconds then start it back up at the last position it left off at. Any help would be great!!</p>
  
  <pre><code>var macro;
  macro = "CODE:";
  macro += "TAG POS={{i}} TYPE=BUTTON ATTR=CLASS:btn&lt;SP&gt;btn-small&lt;SP&gt;likebutton"    + "\n";
  macro += "WAIT SECONDS=2" + "\n";
  for(i=1;i&lt;=5;i++){
  if(i==5){
    macro += "WAIT SECONDS=15" + "\n";
   var i=6;
   iimPlay(macro);
  }
  iimSet("i",i);
   iimPlay(macro);
  
  }
  </code></pre>