Declaring a Variable

The ‘var’ statement declares a single local variable.

var variable_name

You don't have to declare variables, but there are a couple of benefits:

Syntax formatting works for references to it.

Variables are initialized to the empty string value, nil, so they are not confused with literal values when used without being initialized.

For example:

macro SomeFunction()
    var localx

    // "localx" is displayed with "Ref to Local" style 
    localx = 0  

A local variable cannot be access outside of its function.