Programming instructions
28 Chapter 2 CFML Basics
Commenting your code
As in other programming languages, it is important to include comments in the code.
You should comment your code for the following reasons:
• Commented code is easier to debug than code that is not commented.
• If you describe the code on the page, it is easier to make modifications.
• Commented code tends to be better organized.
Comment tag
The ColdFusion comment tag is similar to the HTML comment tag, except that it has
three dashes instead of two:
<!--- This is a CFML comment --- >
ColdFusion comments are not returned to the browser because the ColdFusion server
processes and omits the comments from the page. The user will never be able to read
your comments.