I have a sourceExtract line that works, but I want to check the value it gets. I’m using:
{
“Command”: “if”,
“Target”: “\”${answer}\" == \"#nomatchfound\"",
“Value”: “”
},
but in the log I get
[error] Error in runEval condition of if: unexpected token: identifier
I tried other syntax such as not quoting ${answer}, putting everything in parens, backslash before the # symbol, but I get various other errors. I’m assuming my syntax in Target is wrong, but in case it matters, there’s json in ${answer}.
For now I’m working around it using sourceSearch to see if the thing I want is there first, then doing the extract. I’d rather verify the extracted data, but this works “well enough”
Today is Oct 15, 2022 and this is still not working
{
"Command": "gotoIf_v2",
"Target": "${html_id} == \"#nomatchfound\"",
"Value": "END_OF_UTIL",
"Description": "Exit if the Action Item is not present"
},
Hello @Eltal what exactly does not work? Do you have a test macro? If I run the original macro, all works fine once I use === instead of ==, as recommended for Javascript string comparisons: