I always use the following: <cfif len(trim(var)) is 0> <cfset var = "something"> </cfif>
I read that this was better than just <cfif var="">. I dunno if it really is, but that is what I use. My $.02 Nate -----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]