Using If...Then...Else

Following is an example that demonstrates the If...Then...Else conditional statement:

If obj = "Box1" Then

<statements to execute>

ElseIf obj = "Cylinder1" Then

<statements to execute>

Else

<statements to execute>

End If