Navigation:  Commands > User Profile / User Job Properties [USR, UJP] >

$var_def [USR, UJP]

Previous pageReturn to chapter overviewNext page

Define a Variable and Set its Value

$var_def varname value


This command defines a variable for use on a cover sheet, or for controlling IVR logic flow, for example in $type decision infoboxes. The variable will hide any variable of the same name defined in the configuration file with $var_def and will be hidden itself by any variable defined in an infobox (for example, with $set_var), or by any variable defined by a $var_def in an externally-generated FS file.

Variable names are limited to 32 characters and variable values to approximately 8000.

Writeable system variables listed in Appendix D cannot be set by this command; and the only effect will be to set a normal variable with the same name.

Defining a variable with a varname which starts BCF and is followed by a numeric value has a special purpose in a UJP file or an FFBC template file: list items are only selected for launch if they have the specified value in the corresponding BCF field on any such command.

The parameters on this command are used as follows:

varname the name of the variable to be defined.
value the value to be assigned to the variable, enclosed in double quotes if it contains embedded spaces. This value is not expanded and can therefore contain @ characters if necessary. The special prefix character ^ (see the FS file $var_def command) has no special significance on this command in a USR or UJP file, but will be significant if the variable definition is copied into a broadcast FS file from a job instance UJP file.

Examples:

$var_def appname "Sales Data"

$var_def extension "3323"

 


Topic url: http://www.copia.com/support/refmanual/index.html?%24var_def_usr.htm