[Zope] R: [Zope] simple dtml-if question
Marcel Preda
marcel@punto.it
Wed, 26 Jul 2000 19:44:35 +0200
_______________________________
"Will I be using Python today?"
and if the answer is "yes"
I know that it's going to be a good day.
----- Original Message -----
From: joel grimes <joelgrimes@hotmail.com>
To: <zope@zope.org>
Sent: Wednesday, July 26, 2000 7:14 PM
Subject: [Zope] simple dtml-if question
> How do I do this?
>
> I have a table with a field called SerialNumber. I want to test it for null
> and return a non-breaking space if it's null.
>
> Here's what I tried:
>
> <dtml-if "SerialNumber = null">
> <dtml-else><dtml-var SerialNumber>
> </dtml-if>
>
> Doesn't work (be nice-I'm new). I've tried various combinations of quotes -
> no quotes but apparently haven't hit it just right yet.
just:
<dtml-if SerialNumber>
<dtml-else><dtml-var SerialNumber>
</dtml-if>
PM