title: iMacro extracting data to csv file for not found elements
body: <p>I have following iim file:</p>
  
  <pre><code>TAB T=1
  TAB CLOSEALLOTHERS
  SET !EXTRACT_TEST_POPUP NO
  URL GOTO=http://example.com
  
  SET !DATASOURCE csv_example.csv
  SET !DATASOURCE_COLUMNS 2
  
  ' it will loop trought 1000 records
  SET !LOOP 1
  
  SET !DATASOURCE_LINE {{!LOOP}}
  ' input fields from csv file
  TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ex1 ATTR=NAME:im1 CONTENT={{!COL1}}
  TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:ex1 ATTR=NAME:im2 CONTENT={{!COL2}}
  ' submit form
  TAG POS=1 TYPE=A FORM=NAME:ex1 ATTR=TXT:Submit
  
  ' wait while ajax request finish
  WAIT SECONDS=60
  
  ' start extract to csv file
  
  ' first results
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:input1 EXTRACT=TXT
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:input2 EXTRACT=TXT
  ADD !EXTRACT "1"
  
  TAG POS=1 TYPE=A ATTR=ID:apple1 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:hp1 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:lg1 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:canon1 EXTRACT=TXT
  SAVEAS TYPE=EXTRACT FOLDER=C:\iMacros FILE=Example_{{!NOW:yyyymmdd}}.csv
  
  
  ' second results
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:input1 EXTRACT=TXT
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:input2 EXTRACT=TXT
  
  ADD !EXTRACT "2"
  
  TAG POS=1 TYPE=A ATTR=ID:apple2 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:hp2 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:lg2 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:canon2 EXTRACT=TXT
  SAVEAS TYPE=EXTRACT FOLDER=C:\iMacros FILE=Example_{{!NOW:yyyymmdd}}.csv
  
  ' third results
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:input1 EXTRACT=TXT
  TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:input2 EXTRACT=TXT
  
  ADD !EXTRACT "3"
  
  TAG POS=1 TYPE=A ATTR=ID:apple3 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:hp3 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:lg3 EXTRACT=TXT
  TAG POS=1 TYPE=A ATTR=ID:canon3 EXTRACT=TXT
  SAVEAS TYPE=EXTRACT FOLDER=C:\iMacros FILE=Example_{{!NOW:yyyymmdd}}.csv
  </code></pre>
  
  <p>But the problem is that, when for example </p>
  
  <p>TAG POS=1 TYPE=A ATTR=ID:apple3 EXTRACT=TXT </p>
  
  <p><strong>Is not found in result page, it is not exported to csv file as "", but at once exports next element text</strong></p>
  
  <p>TAG POS=1 TYPE=A ATTR=ID:hp3 EXTRACT=TXT, </p>
  
  <p>And due to that there are not 7 columns in that row, but for example 6, and I cannot check what value is empty, because they exports as comma delimited.</p>
  
  <p>As far as I know, iMacros don't support if else statements, so I cannot check if it empty or not.</p>