Re: [#list with more than 1 variable and a complex condition, like java's for loop?
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Wednesday, June 3, 2009, 11:31:34 PM, Newman, John W wrote:
> Hello,
>
> Is there any way to do this in FM:
>
>
> for (int i = 0, j = 0; i < n || j < m;) {
> }
>
> Normally I never do things like that, but it works out great here.
> And I have to render almost the same thing in FM as what I’ve done
> in java using that loop. I can’t seem to get anywhere with [#list
> and [#break .. any help is appreciated! Thanks
[#assign i = 0]
[#assign j = 0]
[#list 0..1000000 as ignore]
[#if !(i < n || j < m)]
[#break]
[/#if]
...
[/#list]
--
Best regards,
Daniel Dekany
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user