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

Chapter 13. CFScript > Commenting Code

Commenting Code

An important difference to note between ColdFusion’s tag-based structure and CFScript is the formation of comments. In the tag-based structure, a comment takes the form <!--- Comment --->, and in CFScript, comments are denoted by a double forward slash (//). So, use tags like this:

<!--- This is a comment ---> 
<cfset foo = 42> 
<!--- An additional comment ---> 
<cfset string_foo = "forty two"> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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