Everything You Must Know About ColdFusion Variables
Understanding ColdFusion variables and logic is vital to being able to program in the language. In this tutorial, Jay's second covering ColdFusion, you will learn about the types of ColdFusion variables and how to use them.
Everything You Must Know About ColdFusion Variables - Developing ColdFusion Content (Page 2 of 7 )
ColdFusion content can be generated by any text editor, such as Notepad or WordPad. You can also use Macromedia Dreamweaver to create content with its WYSIWIG capabilites. Using Sapien Technologies Primal Script 3.1, and similar products, one can generate the CF content. Search the web to find WYSIWIG ColdFusion Editors, and you will find a couple of others. Some of the in-built intellisense like capabilites help in rapid development of applications. For example, see the dropdown help in the choice of tags in Sapien's Primal Script 3.1. For most of our examples just Notepad will be used.
Variables are at the heart of programming languages and ColdFusion is no exception. Variables are containers of information kept in memory. Manipulation of variables with operators using the built-in logic is what programming is about. Variables are the building blocks. It is necessary to have a good understanding of what variables are, what is their scope (or lifetime of their existence), what types of data they can hold, and so on.
ColdFusion auto generates some variables that give information about the results of certain tags and some operations. Specifically, for example <cffile> tag returns file size information through its cffile.filesize reference. There are many such tags that return variables.