Copy Variable Definitions to FS file

$var_def_copy [PR|OC]

This command is only valid in a $type fsfile infobox. It provides a shortcut method of copying the complete current list of user variables into the generated FS file as $var_def commands.

Note that the $var_def_copy command will not include user variables defined with $set_var commands that follow it in the same infobox file.

The parameter on this command is used as follows:

PRA keyword indicating that all the non-empty PR_... variables are to be copied instead of the user variables.  This is for use in a post-receive infobox to allow the results of a receive operation to be copied for processing in a later infobox called by the generated worker-box FS file.
OCA keyword indicating that all the non-empty OC... variables are to be copied instead of the user variables.  This is for use in a post-process infobox to allow the results of a transmit operation to be copied for processing in a later infobox called by the generated worker-box FS file.
In the copies, the underscore is replaced by a percent sign.  So for example PR_FAXPATH becomes PR%FAXPATH.  Do not reference the % variables in the same $type fsfile infobox because they will expand to empty.

Example:

$var_def_copy        ; copy all user variables

$var_def_copy PR     ; copy all PR_... variables as PR%...

$var_def_copy OC     ; copy all OC_... variables as OC%...

$var_def MYVAR "new" ; override copied variable