Xerox 721P85530 Printer User Manual


 
USING LOGICAL PROCESSING
7-6 XEROX DOCUPRINT 180 LPS PDL REFERENCE
Test expressions
The activation of testing is done by coding the TEST parameter of
any logical processing command described in this chapter. Either
one or two CRITERIA commands can be specified.
The following is a definition of the test expression for a logical
processing command. The test definition is referred to in the syntax
of each of the logical processing commands that follow:
TEST=
cri-id
;
TEST=(
cri-id
1
,AND,
cri-id
2
);
TEST=(
cri-id
1
,OR,
cri-id
2
);
The
cri-id
1
and
cri-id
2
are identifiers for either the change mode or
constant mode CRITERIA commands discussed in this section. If
only
cri-id
is present, the test is satisfied if the criteria in
cri-id
is
satisfied.
If two CRITERIA commands are specified for a test, the testing of two
is linked by either an AND or an OR logical operator. If AND is coded,
both CRITERIA commands must be true for the same data record in
order for the TEST to be successful. If OR is coded, then either
CRITERIA command is satisfied for a data record, the TEST is
successful. The second and third CRITERIA commands are optional;
but if either is specified, the other must also be present. If
cri-id
1
and
cri-id
2
are both present and the keyword AND is coded, the test is
true only if criteria in both
cri-id
1
and
cri-id
2
are satisfied. If the
keyword OR is coded, the test is true if the criteria in either
cri-id
1
or
cri-id
2
are true. If the test is satisfied, the logical processing function
is performed.
For example, the following CRITERIA command describes a test for
a subfield equal to a specific constant table.
cri-id
: CRITERIA CONSTANT = (
offset
,
length
,EQ,
tab-id
);
The CONSTANT parameter specifies that the content of a record is
to be compared to the values in a table command with identifier tab-
id (refer to the “TABLE command” section later in this chapter). The
subfield to be compared is located offset bytes from the start of the
record or block, with length in bytes. When the subfield in the record
or block matches a constant in the table, the CRITERIA command is
true and the processing called for in the parameter is initially
completed or acted upon. The particular logical processing function
is performed when the test expression is true as specified by the
parameter.
Specifying one CRITERIA command
To complete the description of the entire test for a logical function, the
TEST parameter requires a parameter that specifies either one or
two CRITERIA commands. If only one test is to be performed to
determine the value of a particular logical processing function, the
form of the TEST parameter is as follows:
TEST =
cri-id
;
The
cri-id
is the identifier for the particular CRITERIA command.
Parentheses in this format are optional.
Specifying two CRITERIA commands
If two CRITERIA commands are needed to determine the true or
false value for a logical processing function, they may be linked by