这是代码
VERSION BUILD=8940826 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !FOLDER_DATASOURCE C:\Users\user\Documents\iMacros\Datasources
SET !DATASOURCE LINK.csv
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=*
TAB T=2
SET !VAR1 {{!COL1}}
SET !VAR2 {{!URLCURRENT}}
SET !VAR3 EVAL("var url_current=\"!VAR2\"; var url_last=\"!VAR1\"; if( url_current==url_last ) {var action = \"Unlike\";} else {action = \"Like\";} action;"}
PROMPT {{!VAR3}}
每次我运行它时都会收到以下错误代码
wrong format of SET command, line 11 (Error code: 910)
任何人都可以告诉我代码错误
由于
答案 0 :(得分:1)
这是一个括号问题。试试这种方式:
SET !VAR3 EVAL("var url_current=\"{{!VAR2}}\"; var url_last=\"{{!VAR1}}\"; if( url_current==url_last ) {var action = \"Unlike\";} else {action = \"Like\";} action;")