Else – Xerox -05W User Manual

Page 234

Advertising
background image

12-30

Creating A Script File

DSP

Syntax: DSP <integer>

If the integer is 1, all the program lines that follow are displayed and actioned. If the
integer is 0, all following lines are actioned but not displayed.

ELSE

Syntax: ELSE

This command is used in conjunction with the if command and informs the program
to perform the command(s) on the following line(s) if a previously specified if
condition was not true.

For example:

if (integer > 3)
goto routine1:
else
goto routine2:

If more than one command line is to be associated with else, 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)
goto routine1:
else
{
inc integer
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

Advertising
This manual is related to the following products: