CFSCRIPT

The CFSCRIPT tag encloses a code segment containing CFScript.

Syntax

<CFSCRIPT>
CFScript code goes here
</CFSCRIPT>

Usage

Use CFSCRIPT to perform processing in CFScript instead of CFML. Note the following regarding CFScript:

  • CFScript uses ColdFusion functions, expressions, and operators

  • You can read and write ColdFusion variables inside of CFScript

One use of CFSCRIPT is to wrap a series of assignment functions that would otherwise require CFSET statements.

For more information on CFScript, see ../../Developing_Web_Applications_with_ColdFusion/ contents.htmDeveloping Web Applications with ColdFusion/a

Example

cfscript

 <!--- This example shows the use of CFSCRIPT ---> <HTML> <HEAD> <TITLE>CFSCRIPT Example</TITLE> </HEAD> <BODY bgcolor=silver> ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.