One Line Will Execute

So of the user enters nothing (or a string of spaces), then the script will execute this line of code:

Greeting = "Why won't you tell me you name? That's not very nice."

Otherwise, it will execute this line of code:

Greeting = "Hello, " & UserName & ", it's a pleasure to meet you."

Notice that both lines of code assign a value to the Greeting variable. However, only one of these lines will actually execute. That's because our If...Else...End If block makes an either / or decision. Either a given condition is True, or it is False. It can be both. If it is True, the we'll execute the code between the If and Else statements. If it is False, the we'll execute the code between the Else and End If statements.

First
Next