Use this function to define a Variable without processing the given value.
%DefVar(VariableName,Type=Value)
Thereby the parameter
Type is optional and can be one of the following values:
Local - defines a local variable (default)
Global - defines a global variable
Global variables are only automaticaly removed from memory when the script files is closed.
This function call is processed only once and the varaible is stored in memory. The variable value is not processed before storing it in memory. Afterwards you can use the variable as follows:
%VariableName()
Example:
/Definition 1/ %DefVar(MyVariable1,Local=10)
/Definition 2/ %DefVar(MyVariable2,Local=%System.GetDateTime(hh:nn))
The first function call defines a local variable named "MyVariable1" and assigns the value 10 to it. So if using %MyVariable1() in script afterwards, the variable call returns 10.
The second function call defines a local variable named "MyVariable2" and assigns the value "%System.GetDateTime(hh:nn)" to it. So if using %MyVariable2() in script afterwards, the variable call returns the current system time because the value "%System.GetDateTime(hh:nn)" is processed.