[Zope] SV: [Zope] simple dtml-if question

peter be peter@grenna.net
Wed, 26 Jul 2000 19:14:50 +0100


Correct me if I'm wrong.

If the SerialNumber is taken from a ZSQL method, shouldn't you been able to show it without testing its content.
Such as: 
<dtml-var SerialNumber>&nbsp;

Those rows that have something other than 'null' would be shown together with a &nbsp;.

Curious.

----- Original Message ----- 
From: joel grimes <joelgrimes@hotmail.com>
To: <zope@zope.org>
Sent: Wednesday, July 26, 2000 6: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">&nbsp;
> <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.
> 
> What I'm trying to do is stick SOMETHING in an empty cell so netscape 
> doesn't remove my borders when it encounters the empty cell - is there an 
> easy fix?
> 
> Thanks,
> 
> Joel
> 
> 
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>