SET !VAR2 EVAL("var s=\"{{!EXTRACT}}\"; if(s.match(\"One|Two|Three|Four|Five\")){url=\"imacros://run/?m=#Found.iim\";} else url=\"imacros://run/?m=#Continue.iim\"; url;")
I have a fair bit of knowledge in imacros but am still learning JS. I have been using the above JS code on one line within a macro for match conditions. Can anyone tell me if its possible to use a datasource to hold all possible values for the match query? Rather than piping the possibilities...? The datasource would be a .txt file and would have hundreds if not thousands that it would need to check the extract against for a match
I also need to figure out how to ignore case on the datasource match and to make sure the match is the exact word only.
Thanks in advance