Deletes a previously assigned global variable identified by name.
Shogun Post's scripting language supports global variables that are accessible across scripts within a session of Shogun Post. This command will delete a global variable specified by its name.
Data retrieval
delGlobalVar name |
Name | Type | Required | Comments |
---|---|---|---|
name | string | yes | Name of the variable to delete |
None
void
Script A // Define a global variable setGlobalVar myVar 1.1;... Script B // Check to make sure global variable set in Script A still exists if (`getGlobalVarExists myVar`){ // Use it ... // Delete the global variable delGlobalVar myVar; |