Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

Chapter 4. Making Decisions with Conditi... > Using the Select...Case Code Block

Using the Select...Case Code Block

As an alternative to the If...Then code block, Phrogram also supports the Select...Case code block. The Select...Case code block allows you to compare a single value to a range of possible matching values and can be used to replace a series of If...Then statements designed to test different values resulting from the same expression. The syntax for the Select...Case statement is outlined here:

Select Expression

  Case Value
						Statements
  End Case

  Case Value
     Statements
  End Case

  Case Else
     Statements
  End Case

End Select


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial