Interaction Of Cfscript With Cfml - MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual

Table of Contents

Advertisement

Interaction of CFScript with CFML

Interaction of CFScript with CFML

You enclose CFScript regions inside
CFML tags are allowed inside a
ColdFusion generates an error if a
CFScript statement, and CFScript comments are not considered statements. To
comment out all the contents of a
around the entire block, including the
You can read and write ColdFusion variables inside CFScript, as this example shows:
<cfoutput query="patients">
<!--- The variable result takes its value from the script region --->
Test for #name# is #result#.<br>
</cfoutput>
<cfscript>
//'testres' is a column in the "patients" query
if( testres EQ 1 )
result="positive";
else
result="negative";
</cfscript>
and
<cfscript>
region.
cfscript
tag block does not contain at least one
cfscript
tag block, put ColdFusion comment tags
cfscript
and
<cfscript>
tags. No other
</cfscript>
tags.
</cfscript>
249

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 5

Table of Contents