Adobe ColdFusion 8

Character case

ColdFusion is case-insensitive. For example, the following all represent the cfset tag: cfset, CFSET, CFSet, and even cfsEt. However, you should get in the habit of consistently using the same case rules in your programs; for example:

  • Develop consistent rules for case use, and stick to them. If you use lowercase characters for some tag names, use them for all tag names.
  • Always use the same case for a variable. For example, do not use both myvariable and MyVariable to represent the same variable on a page.

Follow these rules to prevent errors on application pages where you use both CFML and case-sensitive languages, such as JavaScript.