Program structure

On the top level of a BI# program, you can only declare functions. But you cannot use function calls on the top level, for example.

All functions that you define are in global scope. You can use them everywhere in your program. You can also refer to functions, even if you define them later in the program.

In addition, you can control some of the Application Engine aspects with the #define statement. You can include other processes through the #include statement. A typical program looks like this:

#define EngineVersion 5.0
#define RuntimeVersion 5.0
int AddNumbers(int a, int b)
@Description: "Adds two numbers.";
@Parameter[a]: "First operand.";
@Parameter[b]: "Second operand.";
{
	return a + b;
}