APP in Arbortext Styler > Components of Documents and Templates > Variables, Counters, and FISH > Global Variables
  
Global Variables
Introduction
Global variables are global to the Arbortext Advanced Print Publisher application that is running. If you set a global variable, anything in the current version of Arbortext Advanced Print Publisher can access it, including different documents. Global variables were traditionally used extensively in scripting to help drive automation processes and to pass information from the script into formatting processes. While the introduction of JavaScript reduced the need for global variables, there are still some use cases which can only be supported using global variables.
Global variables can be accessed in several ways:
from Perl
from Arbortext Advanced Print Publisher scripting
from Arbortext Advanced Print Publisher’s inline showstring language
from JavaScript
Refer to System Information with Global Variables for information on accessing global variables from JavaScript.
Arbortext Advanced Print Publisher uses global variables to store some important application-specific information. These can also be accessed and used — refer to Arbortext Advanced Print Publisher Feature Variables.
Arbortext Advanced Print Publisher Feature Variables
Arbortext Advanced Print Publisher uses global variables to store some application-specific information, including features that are configured for the product in its application and printer settings. It is recommended that you do not overwrite these variables unless you are highly experienced.
The variables can be tested. Some are available through the fApplication object, for example:
fApplication.isUnicode — property is stored in Arbortext Advanced Print Publisher as one of the feature variables ^_f_UNICODE
fApplication.features — array that provides access to all feature variables not given their own property