Share » Forums » Setup & design » How to set arrays dynamically?

How to set arrays dynamically?

How to set arrays dynamically?

Tuesday 22 March 2005 12:38:28 pm - 2 replies

Author Message

Gabriel Ambuehl

Tuesday 22 March 2005 12:48:48 pm

Do you absolutely need to set the index? Or just add the element, as that can be done with append().

Visit http://triligon.org

Ulrich L.

Wednesday 23 March 2005 1:54:38 pm

Thanks, this helped indeed.
It looks now like this:

{let arr=array()}
{section var=myloop loop=$loopsomething}
     {set arr=$arr|append($myloop.name)}
{/section}
{/let}

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu