The requested page is not available for the requested platform. You are viewing the content for Default platform.

Add Else Statement

Adds an else block to a conditional statement and places the cursor into this block.

Availability

From the context menus or via shortcuts:

  • when the edit cursor or caret is on an if keyword, provided that the current conditional statement does not include an else block.

Example

if (a)
    return b;
If a Then
    Return b
End If

Result:

if (a)
    return b;
else
{

}
If a Then
    Return b
Else

End If