Pops wrote:

On Aug 23, 9:36 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:

That is a matter of operator precedence. The plus operator has higher
precedence than the conditional operator, thus

"wcError "+IsHidden('wcError')

gets evaluated first, afterwards the ?:


Ahhhhhh!   That didn't hit me.   Wonderful...

Thanks for the link.

Can you explain the other post regarding the presumed JS bug?

     PutElementValue(v2)  +=  1*GetElementValue(v1);

with a fix is done using a negation?

     PutElementValue(v2)  -=  -1*GetElementValue(v1);


No, I can't tell. A quick test on the Firebug console gave expected results:

>>> var x = 1
>>> x += 1 * '4'
5


--Klaus

Reply via email to