This example demonstrates the If...Else statement.

If the time on your browser is less than 12,you will get a "Good Morning" greeting. Otherwise you will get a "Good Day" greeting.