title: Insert a few lines of Javascript in my IMacros
body: <p>I got 3 questions wich all have to do with the javascript in IMacros.</p>
  
  <p>First I want an if statement like " if you see this text: You succesfully stole a car"
  then select the last checkbox and go on with the rest of the imacros script.
  If not then just go on with the imacros script.</p>
  
  <p>So the 3 questions are:
  How do I insert Javascript in imacros?
  How do I make an if statement with text and if not then just dont do anything?
  How can javascript always select the last checkbox on the site.</p>
  
  <p>here is my imacros script:</p>
  
  <pre><code>TAG POS=1 TYPE=A ATTR=TXT:Auto&lt;SP&gt;Burglary
  TAG POS=1 TYPE=INPUT:RADIO FORM=ACTION:/autoburglary.php ATTR=ID:selectedCrime[2]
  TAG POS=1 TYPE=INPUT:SUBMIT FORM=ACTION:/autoburglary.php ATTR=*
  Now here needs the if statement need to come and the select last checkbox
  WAIT SECONDS=1
  TAG POS=1 TYPE=SELECT FORM=ACTION:/autoburglary.php ATTR=ID:goState         CONTENT=%Pennsylvania-0
  WAIT SECONDS=1
  TAG POS=7 TYPE=INPUT:SUBMIT FORM=ACTION:/autoburglary.php ATTR=*
  </code></pre>
  
  <p>Thnx anyway!</p>