[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Variables and Advanced DTML

webmaster@zope.org webmaster@zope.org
Tue, 24 Sep 2002 16:29:04 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvDTML.stx#2-39

---------------

    Another way to look up the variable *sequence-item* in a DTML
    expression is to use the *getitem* utility function to explicitly
    look up a variable::

      The square of <dtml-var sequence-item> is:
      <dtml-var expr="_.getitem('sequence-item') * 
                      _.getitem('sequence-item')">

      % Anonymous User - Sep. 24, 2002 4:29 pm:
       What abt the often seen

       <dtml-var expr="_['sequence-item']">