You can also do it this way, but dipping into some Java -

http://www.compoundtheory.com/?action=displayPost&ID=153

Mark

On 10/9/07, Vince Bonfanti <[EMAIL PROTECTED]> wrote:
> >Vince - just out of curiousity, if I've got a bunch of code doing this:
> >
> ><cfif foo eq "">
> >
> >and in some cases it's empty string and others it's null - would that
> >code FAIL to wkr as expected under Bluedragon because null neq ""?
> >
>
> That code will work exactly as expected under BlueDragon 7.0. For backwards 
> compatibility, BD treats null database values as empty strings just as CF 
> does; but BD gives you the additional option of explicity checking for a null 
> value. So you can do this (I hope this formatting comes out right):
>
> <cfif foo eq ""> <!--- database null or empty string --->
>   <cfif foo eq null >
>      <p>foo is a database null
>   <cfelse>
>      <p>foo is an empty string
>   </cfif>
> </cfif>
>
> I'm not sure you'd every write code exactly like that, but it illustrates the 
> point.
>
> Vince
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290616
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to