Xerox -05W User Manual page 251

Xerox user's guide printer -05w, -07w & -11w
Table of Contents

Advertisement

IF
Syntax: IF <condition>
Informs the program to perform the command(s) on the following line(s) if the
specified condition is true. The else command may be used in conjunction with if.
For example:
if (integer > 3)
goto routine1:
else
goto routine2
If more than one command line is to be associated with if, insert a line containing the
{ (open curly brace) character before the first command line and a line containing the
} (close curly brace) character following the last command line. For example:
if (integer > 3)
{
inc integer
goto routine1:
}
else
goto routine2:
The if command may be used on the same line as else, for example:
if (N == 1)
X = 2
else if (N == 2)
X = 4
else
X = 1
If and associated else commands may be nested up to 32 times.
INC
Syntax: INC <variable> [<variable>...]
Increases the integer or floating point number assigned to the specified variables by
one.
INP
Syntax: INP <string> <variable>
Displays the string as a prompt and causes all following characters typed from the
keyboard to be assigned to the specified variable until the Enter or Return key is
pressed. All future references to the string may be made using the variable name.
Creating A Script File
12-47

Advertisement

Table of Contents
loading

This manual is also suitable for:

-07w & -11w

Table of Contents