Versions Compared

Key

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

You can check if a global variable is defined in an environment by calling the following methodthe isGlobalVariable(String variableName) method

If the global variable specified by the given variable name is present in the scripting environment, this method will return true. Otherwise, it returns false.
 

Code Block
languagetext
public boolean isGlobalVariable(String variableName) {
...
}



The following code fragment shows how to check if a global variable, e.g., GLOBAL_COUNT, is defined through ALH API.

Code Block
languagetext
ALH.isGlobalVariable("GLOBAL_COUNT");	// Returns true or false.