Ruby Conditionals


Not CompletedConditionals Guide in Ruby

In this section, we are going to talk about conditionals in Ruby, which let our programs make decisions based on varying data.

Not CompletedSyntax for the Unless Conditional in Ruby

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.

Not CompletedGuide to Using Multiple If-Else Conditionals in Ruby

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.

Not CompletedGuide to Compound Conditionals in Ruby

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.

Quizzes


Ruby Conditionals
    Unsupported Browser

    devCamp does not support ancient browsers.
    Install a modern version for best experience.