CFARGUMENT
Used in cffunction definitions to indicate the expected/required parameters for the function.
Usage
<cfargument>
Attributes
Attribute | default | required | summary |
---|---|---|---|
NAME | ![]() |
Provide a name for the argument, so it can be later referenced within the function. | |
TYPE | ANY | By providing a specific type to the expected argument (e.g. QUERY, STRUCT), an error will be thrown if the wrong type is passed in. | |
REQUIRED | NO | If true then this argument must be provided when the function is called otherwise an error will be thrown. | |
HINT | NO | A small description for what this argument. Used in the meta data | |
DEFAULT | NO | If no parameter is present, then this is the default value for the parameter |