TACL Reference Manual

UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual429513-018
8-112
OUTVAR Command
Example
This example illustrates the use of OUTVAR to display the contents of a variable. First,
define a variable name vara:
15> [#DEF vara MACRO |BODY|
15> #OUTPUT [#FILEINFO / EXISTENCE / tempfile ]
15> ]
At this point, if you type vara, TACL returns 0 (false) as the result of vara if TEMPFILE
does not exist and -1 (true) if it does exist.
16> vara
0
If you now enter the OUTVAR command for the variable vara, you see the actual
contents of vara:
17> OUTVAR vara
#OUTPUT [#FILEINFO / EXISTENCE / tempfile ]