Do you mean NULL specifically or just empty? I was taught by one of the
learned ones to use this.

<cfif LEN(somevar) IS 0>Do this<cfelse>Do this other thing</cfif>

I remember a big discussion about this on performance, etc., but am now hazy
on it.

Anyone?

-Gary

> -----Original Message-----
> From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 05, 2001 9:48 AM
> To: CF-Talk
> Subject: Checking for NULL
>
>
> How do I compare a field for a NULL value ?
> <cfif qQuery.field is NULL> ?
>
> Regards,
>
> Thomas Chiverton
> Intranet Architect
> 01565 757 909
> The web is the borderless embodiment of every abstraction
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to