cfargument

Overview ColdFusion Open BlueDragon Lucee

Used in cffunction definitions to indicate the expected/required parameters for the function.

Available: Yes
End Tag: Yes
Attribute Collection: No
Allows any Attribute: No

Attributes

Name Required Type Default Description
default No If no parameter is present, then this is the default value for the parameter
hint No A small description for what this argument. Used in the meta data
name Yes Provide a name for the argument, so it can be later referenced within the function.
required No If true then this argument must be provided when the function is called otherwise an error will be thrown.
type No 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.