...
Retrieves the value of a specified integer global variable.
Shogun PostShogun Post's scripting language supports global variables that are accessible across scripts within a session of Shogun of Shogun Post. This command retrieves the value of a specified global variable (identified by the name argument of the command) which stores a signed 32-bit integer value.
...
Returns the integer value stored in the specified global variable.
Scroll pagebreak |
---|
Examples
Code Block | ||
---|---|---|
| ||
// Use the global myVar |
...
integer $localVar = 2; |
...
print($localVar); |
...
if (`getGlobalVarExists myVar`) |
...
{ |
...
// Override local variable with global integer value |
...
$localVar = `getGlobalFloatVar myVar`; |
...
} |
...
print($localVar); |
Additional information
Related commands
...