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

Chapter 21. Scripting > Conditional Processing

Conditional Processing

Conditional processing with <cfscript> is similar to its function in both Java and JavaScript. Much like with CFML syntax, a conditional statement can be constructed in two ways: using either if or switch/case.

if Examples

A sample if statement appears as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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