Re: searchlist scope inside loop
Tim Arnold <[email protected]> Thu, 19 May 2011 15:12:56 -0400
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
Replying to my own question: The variables *are* available inside the loop, but $varExists doesn't work on them. My conclusion is that the problem lies inside the implementation of the $varExists function. just fyi for any future googlers. --Tim Arnold On Fri, May 13, 2011 at 9:47 AM, Tim Arnold <[email protected]> wrote: > hi, > I seem to be unable to test for nested variables in a searchlist from > within a loop: The following snippet loops over the rows, but the if > statement always false. > > #for $row in $here > =A0<tr> > =A0#for $cell in $row > =A0 =A0#if $varExists('cell.isHeader') and $cell.isHeader > > > Is it impossible to use $varExists('loopvar.subvar') or is there any > way to test variables from within a loop? > > thanks, > --Tim Arnold > ---------------------------------------------------------------------------= --- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its = next-generation tools to help Windows* and Linux* C/C++ and Fortran = developers boost performance applications - including clusters. = http://p.sf.net/sfu/intel-dev2devmay