Else, ElseIF Statements

These instructions are used within an If…Then…Else…End If series of statements to conditionally execute alternative blocks of instructions.

If condition Then
    
[statements]
[ ElseIf elseif_condition Then
     [elseif_statements]]
         :
[ ElseIf elseif_condition Then
     [elseif_statements]]
[ Else
     [else_statements]]
End If

Prerequisites

Can only be specified within an If…Then…End If series of statements.

Remarks

Please see the documentation on the If…Then…Else…End If Statements for an explanation on the use of the Else and ElseIf instructions.

See Also

Statements |If…Then…Else…End If Statement