2022.1

Table Of Contents
resourcetype
A string containing a file extension (e.g. "ol-template") to get a specific type of resource, or an
empty string to get all resources.
Examples
JavaScript
Watch.GetResources("OL-template");
VBScript
Watch.GetResources "OL-template"
Python
Watch.GetResources("OL-template");
Perl
$Watch->GetResources("OL-template");
Watch.GetVariable
Returns the string value of the corresponding variable name. Note that if an undeclared
variable is called using this method, an error will be generated.
Syntax
Watch.GetVariable(Name: String): String
Example
JavaScript
var s;
s = Watch.GetVariable("MyVariable");
Watch.Log("MyVariable's value is: " + s, 2);
s = Watch.GetVariable("global.MyVariable");
Watch.Log("Jobinfo 3's value is: " + s, 2);
VBScript
Dim s
s = Watch.GetVariable("MyVariable")
Watch.Log "MyVariable's value is: " + s, 2
Page 169