Learn Ruby
If Else
7.3
Lesson

if else condition

if else condition is used to do something when the condition is true and to do something else when the condition is false.

Now we have changed the food to soup. Notice that this time else condition message will be printed.