With the help of else if, you can take care of alternative scenarios.

How would you greet people after 6pm? You wouldn't wish them a good day, would you?

Fantastic! You're getting a hang of computer rule-making, aren't you?

Think again. If it's not before 12pm and 6pm, then it's probably evening.