You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by ja...@apache.org on 2004/06/17 01:25:19 UTC

[Apache JMeter Wiki] New: IfController

   Date: 2004-06-16T16:25:18
   Editor: 144.9.158.101 <>
   Wiki: Apache JMeter Wiki
   Page: IfController
   URL: http://wiki.apache.org/jakarta-jmeter/IfController

   no comment

New Page:


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!

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org