Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

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.

Functional area

Data retrieval

Command syntax

Syntax

delGlobalVar name

Arguments

Name
Type
Required
Comments
namestringyesName of the variable to delete

Flags

None

Return value

void

Examples

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;

Additional information

Related commands

  • No labels