O'Reilly logo

ColdFusion 9 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

Conditional processing with If/<cfif>

Now, we have reached the last segment of our fast track introduction to ColdFusion. We would be amiss if we were to forget conditional processing. There are two tags which make up the bulk of conditional processing in ColdFusion.

The first tag is<cfIf>. The second is<cfelse> which has a variation called<cfelseif> where the functionality of the two is combined. If you are familiar with any other language, writing code in ColdFusion should be very similar. The only out of the ordinary issue is that when coding with tags, the language needs to be able to tell the difference between tag braces and greater and less than logic. In ColdFusion tag requests, this is done by replacing the greater than symbol with GT ...

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