Page 1 of 1

pls help me. how to compare extract value?

Posted: Wed Feb 20, 2013 10:31 am
by joiner
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?

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

Posted: Wed Feb 20, 2013 8:32 pm
by joiner
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??