cfscript

Encloses a code block that contains cfscript statements.

Application framework tags, Other tags

<cfscript> 
cfscript code here
</cfscript>

cfinvoke, cfmodule, CreateObject, Extending ColdFusion Pages with CFML Scripting in Developing ColdFusion MX Applications

ColdFusion MX:

Performs processing in CFScript. This tag uses ColdFusion functions, expressions, and operators. You can read and write ColdFusion variables within this tag.

For a detailed description of the CFScript scripting language, including documentation of CFScript statements and the CFScript equivalents of CFML tags, see Extending ColdFusion Pages with CFML Scripting in Developing ColdFusion MX Applications.

You can use this tag to enclose a series of assignment statements that would otherwise require cfset statements.

Caution: If you code a cftry/cfcatch block within this tag using an exception's Java class name, you must provide the fully-qualified class name.

You cannot use some ColdFusion reserved words in this tag. You cannot put a user-defined function whose name begins with any of these strings within this tag:

You cannot use the elseif construct within a cfscript tag. You can use code such as the following:

else if ( condition )
{
...
}

View comments on LiveDocs