Learn Ruby
If Else
7.11
Lesson

Inline if condition

In general we write if conditions like this.

Simple if conditions can be written without an end. This is called inline if.