Xerox -07W & -11W Printer User Manual


 
12-47
Creating A Script File
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.