[thelist] CFSET vs CFParam
Joshua OIson
joshua at alphashop.com
Fri Oct 20 14:04:33 CDT 2000
cfset sets the value no matter what the value of the variable was before
cfparam only sets the value if the variable is undefined
You would use a cfparam to CYA if you are using a variable and don't want to
wrap each instance in a cfif but do not want to destroy data in the variable
if it is already defined.
That's a run-of-the-mill answer, but it should give you an idea of a
potential use.
-joshua
More information about the thelist
mailing list