Skip to content

Variables

Ben LaPaz edited this page Aug 30, 2019 · 2 revisions

Types

There are two types of variables, strings and integers. The type is not defined but determined automatically based on if the assigned value is a number or is text inside of quotes.

number = 10
string = "Hello World"

Access

Variables that need to be accessed anywhere in the application can be prefixed with global. This allows them to be referenced in any functions or events. Without the global prefix, variables are only accessible inside of the function or event they are defined in.

global hello = "Hello World"

Global variables should be defined at the top of the file, after any imports.

import system

global example = "example"

function Main()
{
...
}

Clone this wiki locally