PS TEXT FORMAT Reference Manual

Introduction to TFORM
3–6 11387 Tandem Computers Incorporated
Command
Descriptions
The following pages describe, in alphabetical order, all the TFORM
commands and provide a syntax summary, examples, command options
and their explanations, and tips for each command.
ASSIGN You use the ASSIGN command to associate a variable name with an
expression. TFORM examines the expression (doing any necessary
computations) to evaluate it to a single value, then stores the value in the
variable name. This name can be used as a representation of that value in
later formatting tasks.
What to Enter
\ASSIGN
variable-name exp
variable-name
is an identifying name not more than 32 characters in length. It can
contain letters, numerals, and the underscore (_) character. The first
character must be a letter.
exp
is an expression of string, numeric, or Boolean type.
Examples:
1
\ASSIGN
my
_
var
9+5
2
\ASSIGN
nickname
"The Poet for the Beat Generation"
1
Puts the value of 14 in the variable
my
_
var
2
Places a long string in the variable
nickname