Chapter 13. CFScript

Because ColdFusion is a tag-based markup language, most web developers should find it relatively easy to pick up. However, developers accustomed to procedural and scripting languages often find ColdFusion’s syntax ambiguous, overly simplified, or insufficient when it comes to complex or lengthy logical statements. The creators of ColdFusion realized this and tried to surmount it with the introduction of CFScript in ColdFusion 4.1. CFScript provides a method for developers who are more comfortable using scripting-based languages, such as JavaScript, to exploit their knowledge and skill. CFScript, until recently, was also the only way to create user-defined functions (UDFs). In fact, many of the examples in this chapter will ...

Get Inside ColdFusion™ MX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.