<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
On Fri, 2004-02-27 at 14:55, Asad Habib wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#40a3c5"><I>I have a field in my MySQL database which is allowed to be null and has a
value of NULL as default. I am retrieving this field and numerous others
using a call to dtml-in. After the retrieval, I would like to determine
what this value is inside my DTML document/method. What is the equivalent
of NULL in Zope? Is it a value of 'None'?

I am using the following code but it doesn't work.

&lt;dtml-if expr=&quot;undergraduate_projects_directed == 'None'&quot;&gt;
   &lt;dtml-call &quot;REQUEST.set('undergraduateProjectsDirected', 'Hello')&quot;&gt;
&lt;/dtml-if&gt;</I></FONT></PRE>
</BLOCKQUOTE>
<BR>
I use PostgreSQL and Oracle.<BR>
For each of them, I generally do this :<BR>
<BR>
&nbsp; &lt;dtml-unless undergraduate_projects_directed&gt;<BR>
&nbsp;&nbsp;&nbsp; ...<BR>
&nbsp; &lt;/dtml-unless&gt;<BR>
<BR>
<BR>
Thierry<BR>
<BR>
</BODY>
</HTML>