Name
CFPARAM
Synopsis
<CFPARAM>
Defines a parameter and sets a default value. Can also be used to test for the existence of a parameter and its datatype.
Attributes
-
NAME="
parameter_name
"
Name of the parameter to create. Required.
-
TYPE="
data_type
"
The required parameter type. Valid entries are
Any
,Array
,Boolean
,Date
,Numeric
,Query
,String
,Struct
,UUID
, andVariableName
(name of the variable). Optional. The default isAny
.-
DEFAULT="
value
"
Default value to assign to the variable if it doesn’t exist or has no value already assigned.
Get Programming ColdFusion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.