Forums / General / Array append Problem / Comment29727

Author Topic

Rinze Cats

Thursday 10 June 2004 5:09:26 am

Comment29727

Mm, solved it myself, but am wondering if this is by design or if it is a bug.

Instead of using $counter, I assign it to a variable

{let my_count = $counter}

and use my_count in the function.

When using $counter, it adds $counter itself to array, and then startupdating it in the array. So {$counter} prints the number, with let you can assign it, but with append you append the variable instead of it's value.