342
Developing Web Applications with ColdFusion
continue:
skip to next loop iteration
for ( loop=1; loop LT 10; loop = loop+1)
{
if(a[loop]=0) continue;
a[loop]=1;
}
break:
break out of the current switch statement or loop
for( ; ; )
{
indx=indx+1;
if(Find("key",strings[indx],1))
break;
}
Expressions
CFScript supports all CFML expressions. CFML expressions include operators (such as
+, -, EQ, etc.) as well as all CFML functions.
See the CFML Language Reference for information about CFML operators and
functions.
Note
You cannot use CFML tags in CFScript.
Variables
Variables can be of any ColdFusion type, such as numbers, strings, arrays, queries, and
COM objects. You can read and write variables within the script region.
Comments
Comments in CFScript blocks begin with two forward slashes (//) and end at the line
end. You can also enclose CFScript comments between /* and */. Note that you cannot
nest /* and */ inside other comment lines.
Differences from JavaScript
While CFScript is based on JavaScript, there are some key differences you’ll want to
note:
•
CFScript uses ColdFusion expressions, which are neither a subset nor a
superset of JavaScript expressions. For example, there is no < operator in
CFScript.
•
No user-defined functions or variable declarations are available.
Summary of Contents for COLDFUSION 4.5-DEVELOPING WEB
Page 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Page 14: ...xiv Developing Web Applications with ColdFusion...
Page 26: ...xxvi Developing Web Applications with ColdFusion...
Page 34: ...8 Developing Web Applications with ColdFusion...
Page 70: ...44 Developing Web Applications with ColdFusion...
Page 84: ...58 Developing Web Applications with ColdFusion...
Page 114: ...88 Developing Web Applications with ColdFusion...
Page 148: ...122 Developing Web Applications with ColdFusion...
Page 174: ...148 Developing Web Applications with ColdFusion...
Page 208: ...182 Developing Web Applications with ColdFusion...
Page 244: ...218 Developing Web Applications with ColdFusion...
Page 274: ...248 Developing Web Applications with ColdFusion...
Page 288: ...262 Developing Web Applications with ColdFusion...
Page 300: ...274 Developing Web Applications with ColdFusion...
Page 350: ...324 Developing Web Applications with ColdFusion...
Page 362: ...336 Developing Web Applications with ColdFusion...