Program structure
On the top level of a BI# program, you can only declare functions, but you cannot call functions 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 by using the
#define
statement and you can include
other processes by using
#include
. A typical program looks like
this:
#define EngineVersion 1.0 #define RuntimeVersion 1.0 int AddNumbers(int a, int b) @Description: "Adds two numbers."; @Parameter[a]: "First operand."; @Parameter[b]: "Second operand."; { return a + b; }