Fog Creek Software
Discussion Board

Knowledge Base
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) $}
{$ 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.


Monday, March 4, 2002

This is not possible in 1.0.23.

Michael H. Pryor
Monday, March 4, 2002

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

David Whatley
Tuesday, March 5, 2002

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

Michael H. Pryor
Wednesday, March 6, 2002

*  Recent Topics

*  Fog Creek Home