Each line of code entered into a Script is considered to be a Statement.

And each statement is terminated with a semi-colon ; (dot above a comma) as this indicates to the script engine that it is the end of a Statement.

A semi-colon is also used in Delphi and C# languages to terminate a Statement.

Multiple Statements can be grouped into blocks using Begin….End.

Typical Statements such as the If...Then statement will check for a particular specified condition, and based on the result, run one Statement if true or another if false. If you want to run multiple Statements if the result is true, you need to group then using a Begin...End block.

Try...Except can be used in place of Begin...End to also provide grouping, however Try...Except supports error handling.

The Script itself is contained within a Begin...End block.

For additional information, please refer to Scripting Reference.

The following is an example of a simple one line assignment statement that assigns the value of 10 to the variable called MyVariable.

MyVariable := 10;

Another example of a simple statement is the calling of a function, as illustrated below. This statement calls the LogInfo function and passes a single parameter being the text 'This is the text I want to log'.

LogInfo('This is the text I want to log');