# global

## Syntax

    global variable

## Description

Use the global keyword to define a variable that will have global scope for all of your code. When a variable is global it can be referenced anywhere within your source code.

## Example

    global myValue = 10

    for i = 1 to 5
        myFunction ( )
    next i

    function myFunction ( )
       Print ( myValue )
       myValue = myvalue * 2
    endfunction