GML Overview: A Program

A program consists of a set of instructions, called statements. A program must start with the symbol '{' and end with the symbol '}'. Between these symbols there are the statements. Statements must be separated with a ';' symbol. So the global structure of every program is:

{   ;    ;    ...  }

Statements can take many different forms and be used for different purposes, from assigning a variable to be used later to executing a script.

Each statement in a program is executed as an instruction in order from first to last, which is the normal flow of execution in a program. The overview will also discuss later GML statements that can change a program's flow of execution.

Next: Variables >>>

Back To GML For Non-Programmers