Testing The Input

So what your script must do is test the input, and then execute different code, depending on the result of the test. Hence the term branching - depending on our test of the input, the flow of execution is either going to go this way, or that way. Our script must adapt to the unpredictable nature of the input. For instance, wouldn't our script look pretty stupid if it looks like this:

Dim Greeting
Dim UserName
UserName = "InputBox("Please enter your name:")
Greeting = "Hello, " & Trim(UserName) & ", it's a pleasure to meet you."
MsgBox Greeting

First
Next