• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Scripting > Scripting Syntax

18.1. Scripting Syntax

The <CFSCRIPT> and </CFSCRIPT> tags are at the heart of the CFScript language. All CFScripting in a template takes place between these tags. There are a few general guidelines that will help you write your CFScripts:

  • CFSCRIPT tag pairs can be placed anywhere in your template.

  • More than one set of CFSCRIPT tags can be placed in your template.

  • CFSCRIPT tags may not be nested.

  • Code (including variable names) placed between CFSCRIPT tag pairs is case-insensitive.

  • CFML tags may not be used within a CFSCRIPT tag block.

  • CFML functions may be used within a CFSCRIPT block.

  • CFML variables created outside a CFSCRIPT block are automatically available within the block.

  • Not all CFML variables created inside the CFSCRIPT block are automatically available outside of the block.

  • CFScript statements end in a semicolon.

  • Curly braces { } are used to group related statements.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint