Else
Type Conversion Function
The Else statement adds an additional action to an If Then Statement that executes if the Boolean expression is false.
Syntax
If <Boolean expression> Then <statement 1> Else <statement 2>
Examples
If Var1 = 10 Then
{
Wait 5 sec
Inc Var2
}
Else
{
Wait 10 sec
Dec Var1
}
The following example demonstrates using the Else statement to display different messages based on the Var1 value.
If Var1 < 10 Then
{
Display "Simulation on track"
}
Else
{
Display "Simulation overload"
}