Using logical processing

Constant mode In Constant mode (that is, when the CRITERIA CONSTANT parameter has been specified), you must specify the location, length, and contents of a fixed field within a record. Each record is examined at the specified location to determine if the constant is present (the identifier tabid defines the table containing the constant). If the specified constant is present and equal (EQ), the CRITERIA command is true; if the constant is present and not equal (NE), the command is false.

Change mode In Change mode (that is, when the CRITERIA CHANGE parameter has been specified), you must specify the length and location of a control field in each record. When the content of the control field of one record differs from the content of the control field of the previous record, the CRITERIA command is true.

Value mode In Value mode (that is, when the CRITERIA VALUE parameter has been specified), you compare two numerical values, testing if they are equal (EQ) or not equal (NE), if one value is greater than (GT) or less than (LT) the other value, or if one value is greater than or equal to (GE) or less than or equal to (LE) the other value. If the test on the two values is satisfied, the CRITERIA command is true; if not, the command is false.

Using the CRITERIA command

To complete the description of the entire test for a logical function, the TEST parameter of a logical processing command must specify either one or two CRITERIA commands.

Specifying one If only one test is to be performed to determine the value of a CRITERIA particular logical processing function, the form of the TEST command parameter is as follows:

TEST = criid;

The criid is the identifier for the particular CRITERIA command.

Parentheses in this format are optional.

Specifying two If two CRITERIA commands are needed to determine the true or CRITERIA false value for a logical processing function, they may be linked

commands by either AND or OR. The formats of these TEST parameters may be as follows:

TEST = (criid1, AND, criid2);

or

TEST = (criid1, OR, criid2);

3-10

Using LCDS Print Description Language

Page 190
Image 190
Xerox FreeFlow manual Using the Criteria command, Test = criid1, AND, criid2 Test = criid1, OR, criid2