You probably want to perform an IsDefined check, for instance <cfif IsDefined(var)>your statement</cfif>
IF you have a form submission with check boxes, boxes that are not checked are not submitted and hence are effectively null and you can't perform a value check on them because they don't exist. CF does NOT support null values. The closest it comes is having a few methods of checking on the existence of a variable. Everyone else's replies about checking the length of the variable and potentially trimming white space seems accurate...assuming the variable exists. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Johnson, Michael Sent: Thursday, September 12, 2002 7:46 AM To: CF-List (E-mail) Subject: [KCFusion] checking for nulls... what's the syntax to check if a variable is "null"... i.e. <cfif var is 'null> <cfset var = "something"> </cfif> Mike Johnson Science Application International Corporation (757) 870-9165 Emai: [EMAIL PROTECTED] ______________________________________________________________________ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe.................... mailto:[EMAIL PROTECTED] To Unsubscribe................ mailto:[EMAIL PROTECTED] ______________________________________________________________________ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives........ http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe.................... mailto:[EMAIL PROTECTED] To Unsubscribe................ mailto:[EMAIL PROTECTED]