ColdFusion
  Home arrow ColdFusion arrow What You Must Know About ColdFusion Flow-C...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
COLDFUSION

What You Must Know About ColdFusion Flow-Controls
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2005-09-14

    Table of Contents:
  • What You Must Know About ColdFusion Flow-Controls
  • What if, and where to scenarios
  • Which way to go?
  • Keep looking until you find
  • Breaking out of loops
  • Call a halt and end

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    What You Must Know About ColdFusion Flow-Controls


    (Page 1 of 6 )

    Flow control tags exist to control how a program proceeds. Coldfusion uses conditional processing tags to control the flow. This article covers some of the more important flow control tags in the language, as well as script equivalents.

    Flow is the essence of dynamism, and everything living and dynamic has built-in mechanisms to control flow. Programming languages are no exception. They have logic built-in to control how the program proceeds. Procedural languages like FORTRAN and others (even VB6) had a Goto that diverted the flow to take different paths based on decisions. ColdFusion, too, controls the flow of programs by using conditional processing tags, or via <cfscript/>. These conditions may be of different kinds. Some are associated with processing logic which is associated with user input; some depend on certain inherent time triggered events, some others are based on achieving certain pre-determined values of variables, and so forth.

    Flow Control Tags

    Macromedia documentation details the various categories of flow-control tags that are available as follows:

    • Flow-control: Control of flow from line after line of code processing, to processing lines based on conditions:
      • cfabort
      • cfbreak
      • cfcase
      • cfdefaultcase
      • cfswitch
      • cfif
      • cfelse
      • cfelseif
      • cfloop
    • Flow-control and extensibility:
      • cfexecute
    • Flow-Control and Debugging:
      • cfexit
    • Flow-Control and page Processing:
      • cflocation
      • cfinclude
    • Flow-Control and Exception handling:
      • cftry
      • cferror
      • cfthrow
      • cfrethrow

    In this tutorial, the flow-control tags used to control the flow of processing of a file from the normal, default flow direction to some other direction will be discussed. These tags are the ones that show up first in the above list. The other tags in the list are also associated with flow of other kinds. In addition to the tags, <cfscript/> based flow-control is also described.

    More ColdFusion Articles
    More By Jayaram Krishnaswamy


       · I again welcome you to the CF tutorials. In these tutorials, I want to present a...
     

    COLDFUSION ARTICLES

    - Adobe ColdFusion Just Got More RAD
    - How to Access a SQL Anywhere Database with C...
    - CFXML: Probing XMLDOM in ColdFusion
    - Creating a Web Service with ColdFusion: the ...
    - CFAjax: What it is and How to Use it
    - Querying SQL 2000 Server from ColdFusion
    - Introduction to ColdFusion Markup Language, ...
    - Introduction to ColdFusion Markup Language
    - Databases and Dreamweaver MX 2004, concluded
    - Databases and Dreamweaver MX 2004
    - Welcome to Coldfusion MX 6.1, concluded
    - Welcome to Coldfusion MX 6.1
    - What You Must Know About ColdFusion Flow-Con...
    - What You Must Know About Operators in ColdFu...
    - Everything You Must Know About ColdFusion Va...







    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 12 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek