An If-Then is a code structure used to make a decision based on the result of a simple or compound condition.  It specifies the code to execute when the result is True.

The syntax for an If-Then is:

If <condition> Then

<code to execute>

End If

An If-Then code structure must follow this format.  The words in blue are key (or reserved) words.

If (x = 5) Then

y = 15
z = 25

End If