Character case

ColdFusion is not case sensitive. For example, the following all represent the cfset tag: cfset, CFSET, CFSet, and even cfsEt. However, 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.

 Adobe

Get help faster and easier

New user?