Global

Declares a variable with global scope (accessible from anywhere)

Keywords

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Void

Quick Summary

Declares a variable with global scope (accessible from anywhere)

Technical Exegesis...

Declares a variable with global scope (accessible from anywhere). Syntax is Global name:Type [= initialValue]. Global variables exist for the entire program lifetime and can be accessed from any function or method. Must be declared outside of functions. Type can be Int, Double, String, or a custom Type. Use sparingly as they can make code harder to maintain.

Example

Example.bam
; No example implemented yet