If simples
If <condição> Then <instrução>
If completo
If <condição> Then
<instrução>
…
[Else
<instrução>
… ]
EndIf
If .. ElseIf
If <condição> Then
<instrução>
…
ElseIf <condição>
Then
<instrução>
…
[Else
<instrução>
… ]
EndIf