• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. ColdFusion Scripting > Common Problems and Solutions

Common Problems and Solutions

If you're a JavaScript user, a few things about <cfscript> might not be apparent when you begin coding your scripts. Incorrect operators, for example, tend to be the most common error-causing elements for first-time <cfscript> users. As mentioned earlier, <cfscript> does not support operators such as >=, ==, ++, and many others seen in JavaScript. Instead, <cfscript> uses its own set of operators, such as gte, eq, and i=i+1.

So, in a simple for loop, JavaScript syntax would look like the following:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint