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

Chapter 18. Scripting > CFScript Statements

18.3. CFScript Statements

CFScript contains a number of statements to handle flow control and looping, as we'll discuss in this section. Note that you can't use any CFML tags within a CFSCRIPT block.

18.3.1. if/else

The if/else statement has the same functionality as the CFIF and CFELSE (and by extension, CFELSEIF) tags in regular CFML. The if statement can be used alone, as in:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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