title: Read a hard coded csv file and iterate through each entry to detect empty values
body: <p>I have written a script for iMacro that reads a CSV file to extract numerous login details in order for passwords to be updated. The majority of these login details then also need to be updated on a second website, but in order to do so I need to be able to determine which sites have login details for the second site, and if they do, then run the second part of the iMacro script. </p>
  
  <p>The CSV file I am using is laid out like so;</p>
  
  <pre><code>USERNAME 1 HEADER,   PASSWORD 1 HEADER,   USERNAME 2 HEADER,   PASSWORD 2 HEADER
  username1.1,         password1.1,         username1.2,         password1.2
  username2.1,         password2.1,         username2.2,         password2.2
  username3.1,         password3.1,         ,                    ,
  username4.1,         password4.1,         username4.2,         password4.2
  </code></pre>
  
  <p>A loop would be used to process one row at a time, with a if statement inside to determine whether or not a empty/null value is present. If the second username or password are empty/null then the second part of the iMacro script would be skipped and the loop incremented.</p>
  
  <p>I've never really used Javascript before, but I've have a bit of a look around and found <a href="http://code.google.com/p/jquery-csv/" rel="nofollow">jQuery-CSV</a>, which looks like it's what I need but I cannot for the life of me get it to work. I also found <a href="http://www.html5rocks.com/en/tutorials/file/dndfiles/" rel="nofollow">this</a>, which goes into detail about how to input a file, but it doesn't say how to hardcode it to a local file.</p>
  
  <p>Any help on this would be greatly appreciated.</p>
  
  <p>Thanks!</p>