jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Need some help with functions
Date Mon, 17 Jul 2006 22:38:54 GMT
if X=123 then

${X}=123
and
-${X}=-123

No need for any function calls, just pre-prend a "-" character where
you want to use the number.

S
On 27/06/06, Richard <rdalinger@siu.edu.ar> wrote:
> Hi all, i have started to use jmeter two weeks ago, i need to calculate
> the value of next function:
>
> f(x) = -x; where x is a jmeter variable... after reading jmeter help and
> some of
> the messages on the list i've tried with:
>
>     ${__javascript( (-1) * ${x} , number)}
> i've also tried
>     ${__intSum(0, - ${x}, number)}
>
> Of course isn't working LOL... i hope someone can help me with
> this...thanks in advance.
>
> Dalinger Ricardo Luis
> Toba programmer
> SIU
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Mime
View raw message