O'Reilly logo

macromedia® Coldfusion® MX 7 Web Application Construction Kit by Angela Buraglia, Leon Chalnick, Raymond Camden, Ben Forta

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

Chapter 9. CFML Basics

Working with Conditional Processing

Chapter 8, “Using ColdFusion,” introduced two ColdFusion tags (<cfoutput> and <cfset>), functions, and variables. This chapter takes CFML one big step further, adding conditional and programmatic processing, the stuff that starts to add real power to your code.

The code you wrote in the last chapter was linear—ColdFusion started at the top of the page and processed every line in order. And although that works for simple applications, more often than not you'll need to write code that does various things based on conditions, such as:

  • Displaying different messages ...

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