How about using the LEN function? Something like:

<cfif LEN(Session.VAR) IS '0'>

  <cfset Message = 'Your cart is empty'>

</cfif>



---------- Original Message ----------------------------------
From: Kris Pilles <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Mon, 14 Jan 2002 14:16:21 -0500

I need to figure out how to test whether a session variable contains data.
We're building a new cart and its almost done howevere when the user goes t
o
remove items from their cart, if theyt delete all the items, I want to tell

them that there areno items in the cart but I am unsure of how to test the
session variable to accomplish this..  Any help would be appreciated.

______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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