34,333
edits
Changes
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):