Hey everyone, I'm a complete JavaScript noob was hoping someone here could help me out with this code I would really appreciate it.

Im trying to use iMacros+JavaScript to extract "emails" from a website. Before extracting an email and saving it to a C:/imacros.csv file with iMacros I need a JavaScript code to check if that "email" address is already listed in my C:/imacros.csv file. If it is already in the file NOT to save it again an return error, if it is NOT listed already to save it and continue the script.

I have he iMacro code which uses "EXTRACT" to extract the email, just don't know how to write the JS to check for duplicates


TAG POS=1 TYPE=P ATTR=CLASS:"reply-email" EXTRACT=TXT

SET !VAR1 {{!EXTRACT}}

SET !EXTRACT NULL

SET !VAR2 EVAL("if...... JavaScript should go here ")



.