Reserved Words; Interaction Of Cfscript With Cfml - MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Develop Manual

Developing web applications with coldfusion
Table of Contents

Advertisement

Chapter 20: Extending ColdFusion Pages with CFML Scripting
CFScript is case-insensitive.
All statements end in a semi-colon, and line breaks in your code are
insignificant.
In CFScript, assignments are statements, not expressions.
Some implicit objects are not available, such as Window and Document.
Note

Reserved words

In addition to the names of ColdFusion functions and words reserved by ColdFusion
expressions (such as NOT, AND, IS, and so on), the following words are reserved in
CFScript. Do not use these words as variables or identifiers in your scripting code:
for
while
do
if
else
switch
case
break
default
in
continue

Interaction of CFScript with CFML

You enclose CFScript regions inside <CFSCRIPT> and </CFSCRIPT> tags. No other
CFML tags are allowed inside a CFSCRIPT region.
A CFSCRIPT tag block must contain at least one CFScript statement, and comments
are not considered statements. If there are no statements, you should comment out
the entire CFSCRIPT block (including its enclosing <CFSCRIPT> and </CFSCRIPT>
blocks) with CFML comment tags.
You can read and write ColdFusion variables inside CFScript, as shown in this
example:
CFScript is not directly exportable to JavaScript. Only a limited subset of
JavaScript can run inside CFScript.
343

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents