Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Queries whether a specified global variable exists in the Shogun the Shogun Post session or not.

Shogun PostShogun Post's scripting language supports global variables that are accessible across scripts within a session of Shogun of Shogun Post. This command checks the current session of Shogun of Shogun Post to determine if a global variable exists and has been set or not.

...

Returns whether the global variable exists or not (true if the variable exists, false otherwise).

Scroll pagebreak

Examples

Code Block
languagetext
// Script A

...


// Define a global variable

...


setGlobalVar myVar "ShogunPost 1.6";

...


 

...

// Script B

...


// Check to make sure global variable set in Script A still exists

...


if( `getGlobalVarExists myVar` )

...


{

...


   // Use it

...


   string $progName = `getGlobalStringVar myVar`; 

...


   print($progName);

...


}

Additional information

Related commands

...