Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Learn
Control Flow in Ruby

If, Else, and Elsif

All right! You're all on your lonesome. (Well, not quite. We'll just leave this example here.)

a = 10 b = 11 if a < b print "a is less than b!" elsif b < a print "b is less than a!" else print "b is equal to a!" end
Report a Bug
If you see a bug or any other issue with this page, please report it here.