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

Chapter 13. CFScript > Conditional Programming

Conditional Programming

Perhaps the most important aspect of programming languages is the capability to program conditional logic. The most obvious of these is the If-Then-Else statement. Take a standard ColdFusion conditional statement like the following:

<cfif x lt y> 
    <cfset index = x> 
<cfelse> 
    <cfset index = y> 
</cfif> 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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