searchlist scope inside loop

Tim Arnold <[email protected]> Fri, 13 May 2011 09:47:11 -0400
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
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
  <tr>
  #for $cell in $row
    #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

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay