--- GConditions.old	2006-03-26 08:23:37.000000000 +0200
+++ GConditions.py	2006-04-14 10:33:03.000000000 +0200
@@ -1204,6 +1204,82 @@
 
 
 # -----------------------------------------------------------------------------
+# is TRUE
+# -----------------------------------------------------------------------------
+
+class GCtrue (GUnaryConditionElement):
+  """
+  Test for SQL IS TRUE
+  """
+  def __init__ (self, parent = None):
+    GUnaryConditionElement.__init__ (self, parent, 'GCtrue')
+    self._operator_ = u"(%s IS TRUE)"
+
+  # ---------------------------------------------------------------------------
+
+  def evaluate (self, lookup):
+    self._needChildren ()
+    return self._children [0].evaluate (lookup) is True
+
+
+# -----------------------------------------------------------------------------
+# is Not TRUE
+# -----------------------------------------------------------------------------
+
+class GCnottrue (GUnaryConditionElement):
+  """
+  Test for SQL IS NOT TRUE
+  """
+  def __init__ (self, parent = None):
+    GUnaryConditionElement.__init__ (self, parent, 'GCnottrue')
+    self._operator_ = u"(%s IS NOT TRUE)"
+
+  # ---------------------------------------------------------------------------
+
+  def evaluate (self, lookup):
+    self._needChildren ()
+    return self._children [0].evaluate (lookup) is not True
+
+
+# -----------------------------------------------------------------------------
+# is FALSE
+# -----------------------------------------------------------------------------
+
+class GCfalse (GUnaryConditionElement):
+  """
+  Test for SQL IS FALSE
+  """
+  def __init__ (self, parent = None):
+    GUnaryConditionElement.__init__ (self, parent, 'GCfalse')
+    self._operator_ = u"(%s IS FALSE)"
+
+  # ---------------------------------------------------------------------------
+
+  def evaluate (self, lookup):
+    self._needChildren ()
+    return self._children [0].evaluate (lookup) is False
+
+
+# -----------------------------------------------------------------------------
+# is Not FALSE
+# -----------------------------------------------------------------------------
+
+class GCnotfalse (GUnaryConditionElement):
+  """
+  Test for SQL IS NOT FALSE
+  """
+  def __init__ (self, parent = None):
+    GUnaryConditionElement.__init__ (self, parent, 'GCnotfalse')
+    self._operator_ = u"(%s IS NOT FALSE)"
+
+  # ---------------------------------------------------------------------------
+
+  def evaluate (self, lookup):
+    self._needChildren ()
+    return self._children [0].evaluate (lookup) is not False
+
+
+# -----------------------------------------------------------------------------
 # upper  
 # -----------------------------------------------------------------------------
 
@@ -1412,6 +1488,22 @@
          'BaseClass'  : GCnotnull,
          'Description': 'Implements a {field} IS NOT NULL condition.',
          'ParentTags' : ('condition','and','or','not')},
+      'true': {
+         'BaseClass'  : GCtrue,
+         'Description': 'Implements a {field} IS TRUE condition.',
+         'ParentTags' : ('condition','and','or','not')},
+      'nottrue': {
+         'BaseClass'  : GCnottrue,
+         'Description': 'Implements a {field} IS NOT TRUE condition.',
+         'ParentTags' : ('condition','and','or','not')},
+      'false': {
+         'BaseClass'  : GCfalse,
+         'Description': 'Implements a {field} IS FALSE condition.',
+         'ParentTags' : ('condition','and','or','not')},
+      'notfalse': {
+         'BaseClass'  : GCnotfalse,
+         'Description': 'Implements a {field} IS NOT FALSE condition.',
+         'ParentTags' : ('condition','and','or','not')},
       'upper': {
          'BaseClass'  : GCupper,
          'Description': 'Implements upper({value}).',

