Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Variables inside loop condition

Is it possible to have a variable inside a loop condition such as:

{$ foreach x in (folder x.extra1) $}
{$x.headline$}
{$ next $}

This would allow me to use 1 template instead of hardcoding folder names or having separate index files with folder names in them.  Currently the parser chokes on what I have written.  Any help would be appreciated.

Thanks,
WayGee

WayGee
Monday, March 04, 2002

This is not possible in 1.0.23.

Michael H. Pryor
Monday, March 04, 2002

Cool idea tho!  See what happens when you expose something to pesky users!?!?! :)

David Whatley
Tuesday, March 05, 2002

Oh definitely - don't get me wrong!  It's a very cool idea.

Michael H. Pryor
Wednesday, March 06, 2002

*  Recent Topics

*  Fog Creek Home