Begin

Top  Previous  Next

 

The Begin command allows you to set the start point for a group of commands, and will normally be used in combination with an If command that will determine whether or not the group of commands should be executed. If they should be executed, each command will be actioned sequentially.  If not, all the commands will be ignored.

lamp Important: This command can ONLY be used inside a single User Section within a script and must always be used as a pair with a subsequent End command. If there is no matching End command or you try to use the command anywhere else in a script or across multiple user sections an error will be thrown.

Command Syntax

 

Begin:

 

The colon after the command is compulsory. Any additional spaces or characters will cause an error to be thrown. The command itself is not case sensitive.

 

Parameters:

 

No parameters are required

 

If any parameters are provided an error will be thrown.

 

Example:

 

[Setup]

Var:Value,true

 

[Test User Section]

@If:VarEquals,Value,true,

    Begin:

        Remark:This is the first true Remark,

        Remark:This is the second true Remark|BlankLineBeforeAndAfter,

        Remark:This is the third true Remark,

    End:,

    Begin:

        Remark:This is the first false Remark,

        Remark:This is the second False Remark|BlankLineBeforeAndAfter,

        Remark:This is the third false Remark,

    End:;

 

See Also: Command Groups End If