Global

Global variables available across the environment.

The global library is a single constant key<->value variable map.

It is identical between all scripts and functions that run in the environment. The data is not accessible from other environments.

import [global]

global[greeting="hello"]

run function {
    import [global]
    /say {global[greeting]}
}

The global variable container has special access protection governed by the OS kernel so that multiple programs can access it simultaneously.

Last updated