At 5:01 pm +0100 23/5/00, Andy Gates wrote:
>This one is so dumb you'll be laughing, but any help would be greatly
>appreciated.
>
>I need to evaluate an IF.  That's all.  I have a variable called Action
>that's a string, and it can be null, "Add", "Update" etc.
>
>I try something along the lines of:
>       <dtml-if action == "add">
>               blah
>       </dtml-if>

<dtml-if "action == 'add'">
        blah
</dtml-if>

As an aside, whenever anything is in " .. " - it becomes a Python expression.
hth
Tone
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to