> -----Original Message----- > From: Tony Schreiber [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 11:06 AM > To: CF-Talk > Subject: CFPARAM Question > Do subsequent CFPARAMS of the same variable overwrite each other? I > thought so, but they don't seem to. > > <CFPARAM NAME="foo" DEFAULT="bar"> > > .. later ... > > <CFPARAM NAME="foo" DEFAULT="boo"> > > If I check for foo it's still "bar" instead of "boo"... > > Is there a way to duplicate my intended behavior another way?
The only time cfparam will create a variable is if it doesn't exist. So the first cfparam will create the variable, and the second will not change it because it already exists. I'm not too sure what the intended behavior is. You can just check the value of foo after you use your first cfparam, since it will exist no matter what. Then you can do whatever you want with it based on the value you get returned. Andy ______________________________________________________________________ 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

