O'Reilly logo

ColdFusion 8 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding and Using Simple Variables

In this section, we will have a look at a couple of variable types with the help of which you will be getting an idea of how ColdFusion works with variables. We are going to look at the different types of simple variables.

There are four types of simple variables: string, numeric, Boolean, and date or time variables. Although a variable can have any name, there are a few basic guidelines for naming variables. They are as follows:

  • A variable name must begin with a letter, which can be followed by any number of letters, numbers, and underscore characters.
  • A variable name cannot contain spaces.
  • Variable names are not case sensitive in ColdFusion. (myVariable is the same in ColdFusion as Myvariable.)

We will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required