Changes

Jump to: navigation, search

The Ruby case Statement

150 bytes added, 15:07, 19 March 2009
no edit summary
<hr>
 
== Introduction ==
 
In this chapter of [[Ruby Essentials]] we will look at implementing flow control logic in Ruby scripts.
 
== Ruby Flow Control ==
In the previous chapter we looked at some basic conditional structures using the ''if ... else'' and ''if .. elsif ...'' mechanisms. These approaches to building conditional logic work well if you need to check a value against a only few different criteria (for example checking the value of a string against a couple of possible candidates):

Navigation menu