Thanks a lot for this answer,I was wondering how to do this.
Now I have another question. How do I save ${__V(inputVar_${counter}_g1)} in a convenient ${MYVAR} so I can use ${MYVAR} everywhere else instead of the long format? Thank you On Fri, Aug 1, 2008 at 2:37 AM, Andrey Beznogov <[EMAIL PROTECTED]> wrote: > Hi, > > quoting > http://jakarta.apache.org/jmeter/usermanual/functions.html#what_can_do > > Note that variables cannot currently be nested; i.e ${Var${N}} does > not work. The __V (variable) function (versions after 2.2) can be used > to do this: ${__V(Var${N})}. In earlier JMeter versions one can use > ${__BeanShell(vars.get("Var${N}")}. > > Here is that functions description again > > http://jakarta.apache.org/jmeter/usermanual/functions.html#__V > > Regards, > Andrey > > On Thu, Jul 31, 2008 at 10:59 PM, Ryan Miling <[EMAIL PROTECTED]> wrote: >> I am attempting to use a while controller with the following condition: >> >> >> >> ${__javaScript("${x${numX}}"!="-1",dummy)} >> >> >> >> The condition includes a reference to the variable numX, which is a >> positive integer (e.g. 1,2,3,etc.), as well as the variable x${numX} >> that is also a positive integer (e.g. x1,x2,x3,etc.). These variables do >> in fact exist and are defined well. >> >> >> >> The issue is that the loop is never-ending and never evaluates to false >> (dummy = true). I expect the error is involving a variable referenced >> within a variable, but I am not sure what is the proper syntax to do so. >> I also checked related questions and I do not have any trailing spaces >> at the end of the condition or any variable. >> >> >> >> Ryan >> >> >> >> > > > > -- > diem perdidi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]