Documentation | Help File | Scripter Studio | Pascal Language | Script structure
Script structure is made of two major blocks:
a) Procedure and function declarations.
b) Main block. Both are optional, but at least one should be present in script. There is no need for main block to be inside begin .. end. It could be a single statement.
Examples:
SCRIPT 1:
procedure DoSomething ; begin CallSomething ; end ; begin CallSomethingElse ; end ;
SCRIPT 2:
begin CallSomethingElse ; end ;
SCRIPT 3:
function MyFunction ; begin Result := 'Ok!' ; end ;
SCRIPT 4:
CallSomethingElse ;
Like in Pascal, statements should be terminated by ; character. begin .. end blocks are allowed to group statements.