quote:
Originally posted by foaly
no... if you want to make sure it is calculated first use:
code:
"Delay1"+(ChatWnds.length-1)
but even without it probably works correctly...
The syntax in the original script still works. Take for example:
code:
var aChatWnds = [1, 2, 3];
Debug.Trace("Delay1"+[aChatWnds.length-1]);
The debug logs "Delay12", as it should be. Sure, your way with round brackets works too.
However, it does
not work correctly without it! The same code, without the brackets:
code:
var aChatWnds = [1, 2, 3];
Debug.Trace("Delay1"+aChatWnds.length-1);
This time, the debug reads "-1.#IND"...