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

19. Scripting > 19.1. Scripting Syntax

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.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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