[Zope] simple dtml-if question

Nick Garcia ngarcia@codeit.com
Wed, 26 Jul 2000 11:16:16 -0700


joel grimes wrote:
> 
> 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>

<dtml-var SerialNumber null="&nbsp;">

-- 
Nick Garcia | ngarcia@codeit.com
CodeIt Computing | http://codeit.com