Thanks Will. Looks like I was getting an error from some other code and not this array/listfterall. Doh!
I've now got it working like this: #set($testarray = [["one", "two", "three"],["four", "five", "six"], etc]) And using get to retrieve values like: $testarray.get(1).get(1) Which in this example outputs: five -Dan -----Original Message----- From: Will Glass-Husain [mailto:[EMAIL PROTECTED] Sent: Monday, January 01, 2007 11:14 AM To: Velocity Users List Subject: Re: multidimensional array help Hi Dan, Actually, the [1,2,3] syntax produces a List, not an Array. (just to be technical). So you can use List methods. Try #set($item1 = [1,2,3]) #set($item2 = [4,5,6]) #set($list = [$item1, $item2]) WILL --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
