That does the trick.

It makes sense when I think about it because it is a j-meter variable and 
a javascript expression so you end up doing a straight string comparison. 
Except in my case one of them did not have "" around it. And now I look at 
the documentation again I see that the examples have quotes around the 
j-meter variables.

I could have sworn blind that those quotes were not there last night.

Thanks,

James




sebb <[EMAIL PROTECTED]> 
04/04/2007 18:48
Please respond to
"JMeter Users List" <[email protected]>


To
"JMeter Users List" <[email protected]>
cc

Subject
Re: if controller problem






On 05/04/07, James Bull <[EMAIL PROTECTED]> wrote:
> I am getting the error
>
> 2007/04/04 18:34:35 ERROR - jmeter.control.IfController: "Default" is 
not
> defined. ReferenceError: "Default" is not defined. (<cmd>; line 1)
>        at
> 
org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:597)
>
> I am using a regular expression extractor on the previous page to set a
> variable with a value.
>
> Then in the if controller I am using the expression
>
> ${calendarPresent} == "There is no calendar"
>
> What am I doing wrong?

Try

"${calendarPresent}" == "There is no calendar"


> Thanks,
>
> James
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Reply via email to