Else (Reserved Word)

image\trumpet2.gif Disclaimer

This word is used to execute a series of code based on a condition that has returned a value of False.

Else

Remarks

Else can only be used following an If... Then statement.

Examples

If Condition1 Then
 
{Your Code Line1}
Else Begin

 
{Your Code Line2}
End
;

Else is used here to begin the code that will be executed if Condition1 returns a value of False. No semicolon should be used preceding the Else statement.

If Condition1 And Condition2 Then Begin
 
{Your Code Line1};
 
{Your Code Line2, etc.};
End
Else Begin

 
{Your Code Line3};
 
{Your Code Line4, etc.};
End
;

Else is used here to begin the code that will be executed if either Condition1 or Condition2 return a value of False. Again, no semicolon should be used preceding the Else statement.