In this section, we are going to talk about conditionals in Ruby, which let our programs make decisions based on varying data.
The unless conditional is a popular programming process for many rubyists. It's not required and many developers I know, even experienced ones, don't like it since it is a very different way of looking at conditionals. I'll leave it up to you to decide if you feel good about using it in your programs.
In this lesson, we are going to learn more about multiple if-else conditionals in the same program. Ruby has a little bit different syntax on this one, so I thought it would be nice to walk through it slowly.
We have seen `if-else` and `unless` statements in the previous lesson, but sometimes, you may want to combine multiple conditionals together to perform a certain task. In this lesson, I'm going to show you how to do it with compound, also known as nested conditionals.
devCamp does not support ancient browsers.
Install a modern version for best experience.