cfscript
Description
Encloses a code block that contains
Category
Application framework
Syntax
<cfscript>
cfscript code here
</cfscript>
See also
,
cfinvoke
cfmodule
Scripting" in ColdFusion MX Developer's Guide
History
ColdFusion MX:
•
Changed how to invoke component methods: this tag can now invoke component methods,
using the
CreateObject
•
Changed use of reserved words: you cannot use ColdFusion reserved words within this tag
•
Added the
try
Usage
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 Chapter 6, "Extending
ColdFusion Pages with CFML Scripting" in ColdFusion MX Developer's Guide
You can use this tag to enclose a series of assignment statements that would otherwise require
statements.
cfset
Caution: If you code a
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:
•
cf
•
cf_
•
_cf
•
coldfusion
•
coldfusion_
•
_coldfusion
376
Chapter 2: ColdFusion Tags
cfscript
tags,
Other tags
,
; Chapter 6, "Extending ColdFusion Pages with CFML
CreateObject
function
and
statements.
catch
block within this tag using an exception's Java class name, you
cftry/cfcatch
statements.
.