Local variable

From Bennu Wiki
Revision as of 06:14, 3 September 2009 by Sandman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Definition

A local variable is a variable that is specific to a process in the same way as a public variable: they are both accessible from other places in the code than the process/function itself. However, unlike a public variable, when a local variable is declared, all following processes will have that local.

There's also a number of predefined local variables.

To start the declaration of local variables, use Local.

Example

Local
    // insert local variables that you can use here
End

Process Main()
Begin
    // main code
End

Used in example: Process, Local, Begin, End