JavaScript if ... else if ... else

Use the else if statement to specify a new condition if the first is false.

A time-based greeting: