Comparing x_index into the loop should do the trick

http://fmpp.sourceforge.net/freemarker/ref_directive_list.html

Jacques

De : "nashrul" <[EMAIL PROTECTED]>
> 
> thanks for your advice ghove.. but i try to apply this, and it doesn't work
> ....
> 
> 
> cjhowe wrote:
> > 
> > hmm..IIRC correctly, try ${seq[0]}  x is the current object in the
> > index.
> > --- nashrul <[EMAIL PROTECTED]> wrote:
> > 
> >> 
> >> I have this ftl snippet code.
> >> 
> >> <#assign seq = ["winter", "spring", "summer", "autumn"]>
> >> <#list seq as x>
> >>      --htmll code here
> >>      --retrieviing seq here from certain index
> >> </#list> 
> >> 
> >> How can i retrieve just the certain index from seq list (say x[0] and
> >> x[1])
> >> ??
> >> -- 
> >> View this message in context:
> >>
> > http://www.nabble.com/retrieving-list-in-ftl-from-specified-index-tf4323738.html#a12312945
> >> Sent from the OFBiz - User mailing list archive at Nabble.com.
> >> 
> >> 
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/retrieving-list-in-ftl-from-specified-index-tf4323738.html#a12323519
> Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to