cfparam / Attribute default

Back to cfparam

General
default
Value to set parameter to if it does not exist. Any expression used for the default attribute is evaluated, even if the parameter exists. The result is not assigned if the parameter exists, but if the expression has side effects, they still occur.
ColdFusion
Yes
Value to set parameter to if it does not exist. Any expression used for the default attribute is evaluated, even if the parameter exists. The result is not assigned if the parameter exists, but if the expression has side effects, they still occur.
3
No
Object
Open BlueDragon
Yes
A value to be applied to this parameter if it does not exist at the time of this check.
2
No
Lucee
Yes
Default value to set the parameter to if it does not exist.
1
No
Any