[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-user
Subject:    Re: list-index operator
From:       "Dan Bachelder" <chowda () chowda ! net>
Date:       2001-10-29 3:35:47
[Download RAW message or body]

if you can use a collection do $myCollection.get(0)

----- Original Message -----
From: "Mike Williams" <mikew@cortexebusiness.com.au>
To: <velocity-user@jakarta.apache.org>
Sent: Sunday, October 28, 2001 10:33 PM
Subject: list-index operator


> Does Velocity have a list-index operator?  It want to display the first
> element of an array (or a Collection), but
>
>   $someArray[0]
>
> doesn't work.  Is this is an intentional omission?
>
> --
> cheers, Mike
>
>
> --
> To unsubscribe, e-mail:
<mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:velocity-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic