You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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!

  • No labels