User Tools

Site Tools


begin_define_code_structure_.htm
Navigation:  Language Reference > 2 - Program Source Code Format > Compiler Directives >====== BEGIN (define code structure) ====== Previous pageReturn to chapter overviewNext page

BEGIN

statements

END

blk2blue.jpg

BEGIN Declares a single code statement structure.
statements Executable program instructions.

The BEGIN compiler directive tells the compiler to treat the statements as a single structure. The BEGIN structure must be terminated by a period or the END statement.

BEGIN is usually used in an EXECUTE control structure to allow several lines of code to be treated as one.

Example:

EXECUTE Value

Proc1      !Execute if Value = 1

BEGIN      !Execute if Value = 2

 Value += 1

 Proc2

END

Proc3      !Execute if Value = 3

END

See Also:

EXECUTE

begin_define_code_structure_.htm.txt · Last modified: 2021/04/15 15:56 (external edit)