Examples of JavaScript syntax for Condition field:
'${foo}' == 'SOMETHING' (make sure you use single quotes!)
${a} > ${b}
The only way I could get the condition to be true was to put "true" as the Condition. I could discover a way to make it evaluate if a variable ${res} was "ERROR". I tried these syntaxes:
${__javascript(("${res}"=="ERROR"),foo)}
${__javascript((${res}=="ERROR"),foo)}
${__javascript((${res}==ERROR),foo)}
"${res}"=="ERROR"
${res}=="ERROR"
${res}==ERROR
I also tried setting the value of ${res} to "true" and putting "${res}" as the Condition but that did not work either. Only hardcoding the condition as "true" caused the samplers under the If Controller to run for me.
Help please!