Show / Hide Table of Contents

Begin and End


General Control Statement

The Begin symbol { defines a statement block with a corresponding End symbol }. Begin and End are almost always used in conjunction with other control statements such as If...Then and Do...While. Every Begin symbol must pair with an End symbol.

Syntax

{
    <logic>
}

Examples

While FreeCap(Loc1) > 5 Do
{
    Inc Var2, 5
    Wait 5 sec
}
If Var1 > 5 Then
{
    Inc Var2, 5
    Wait 5 sec
}

Example

The following example demonstrates how the Begin and End symbols function using an If...Then statement. Note how all the statements within the Begin and End symbols are executed when the condition is met.

If Var1 = 5 Then
{
    Graphic 2
    Inc Var1
    Display "Var1 is now 6"
}

Begin and End Example 1

Begin and End Example 2

Parameters

<logic>

Any logic that must be contained by the Begin and End symbols.

In This Article
Back to top Generated by DocFX