Adobe COLDFUSION 9 Manual page 113

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
The CFML Programming Language
Using CFScript
<cfscript>
if (IsDefined("Form.submit")) {
if ((Form.lastname NEQ "") AND (Form.department NEQ "")) {
employee=StructNew();
employee.firstname=Form.firstname;
employee.lastname=Form.lastname;
employee.email=Form.email;
employee.phone=Form.phone;
employee.department=Form.department;
WriteOutput("Adding #Form.firstname# #Form.lastname# <br>");
}
else
WriteOutput("You must enter a Last Name and Department.<br>");
}
</cfscript>
Language Enhancements in ColdFusion 9
The language enhancements in ColdFusion 9 include new language constructs, extended tag support, new keywords,
script functions implemented as CFCs, and support for new operations.
New tag equivalents in CFScript
The following table lists the tags that have equivalents in CFScript:
Tag
cfabort
cfcomponent
cfcontinue
cfdirectory
Only for
<Cfdirectory action=list/>
cfdump
cfexit
cffinally
cfimport
cfinclude
cfinterface
cflocation
cflog
cfparam
cfprocessingdirective
cfproperty
cfrethrow
cfthread
Equivalent in CFScript
abort
component
continue
The directory functions
DirectoryList
, and
DirectoryRename
writedump
exit
finally
import
include
interface
location
writelog
param
pageencoding
property
rethrow
thread
Last updated 8/5/2010
DirectoryCreate
,
DirectoryDelete
.
108
,

Advertisement

Table of Contents
loading

Table of Contents