Add Else Statement
In This Article
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