[Zope] <dtml-if "&dtml-var; != &dtml.-var;">

Reini Urban rurban@x-ray.at
Sun, 29 Jul 2001 22:58:00 +0100


How can I check in a DTML Document if a html_quot'ed variable 
is unequal to the unquoted var?

I tried without success:
<dtml-if "&dtml-var; != &dtml.-var;">
  var / unquoted: &dtml-var;
<dtml-else>
  var
</dtml-if>

and also:
<dtml-if expr="var != _.html_quote.var">
<dtml-if expr="var != var.html_quote">
<dtml-if expr="var != &dtml.-var;">
<dtml-if expr="var != <dtml-var var html_quote>">

I don't want to create a python script for this simple problem.
html_quote is a DocumentTemplate function, but not exported, or?

from DocumentTemplate import html_quote
if self != html_quote(self):
  ...
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/