pls help me. how to compare extract value?

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
joiner
Posts: 8
Joined: Tue Dec 04, 2012 9:42 am

pls help me. how to compare extract value?

Post by joiner » Wed Feb 20, 2013 10:31 am

SET !EXTRACT_TEST_POPUP NO
TAG POS=1 TYPE=DIV ATTR=CLASS:total&&TXT:food:* EXTRACT=TXT
SET !VAR1 {{!EXTRACT}}
SET !EXTRACT NULL
SET !VAR1 EVAL("var d=\"{{!EXTRACT}}\"; if(d != "food:20000"){d=d+1000;refresh;} else d;") <-why can't compare?
joiner
Posts: 8
Joined: Tue Dec 04, 2012 9:42 am

Re: pls help me. how to compare extract value?

Post by joiner » Wed Feb 20, 2013 8:32 pm

SET !VAR1 EVAL("var s1=\"12345\"; var s2=\"12345\"; if (s1==s2){3;} else {iimPlay(REFRESH);} ")
why it said refresh undefined here?
use window.location.reload(); also undefined??
Post Reply