In this chapter, we explored the basic syntax for conditionals in Ruby. Conditionals are one of the building blocks for many programs, so make sure to run through these examples multiple times to familiarize yourself with the keywords. We also analyzed the unless conditional, which is essentially the contrapositive of the traditional if...else conditional, so it can be confusing to many developers. We saw how to work with nested conditionals. Specifically, we analyzed both the syntaxes and also how conditionals operate from a data flow perspective. This chapter also walked us through how to use compound conditionals in Ruby. Additionally, we defined the list of conditional operators that you can utilize in a program.
In the next chapter, we'll start analyzing object-oriented programming in Ruby.