Using logical processing3-10 Using LCDS Print Description LanguageConstant mode In Constant mode (that is, when the CRITERIA CONSTANTparameter has been specified), you must specify the location,length, and contents of a fixed field within a record. Each recordis examined at the specified location to determine if the constantis present (the identifier tabid defines the table containing theconstant). If the specified constant is present and equal (EQ), theCRITERIA command is true; if the constant is present and notequal (NE), the command is false.Change mode In Change mode (that is, when the CRITERIA CHANGEparameter has been specified), you must specify the length andlocation of a control field in each record. When the content of thecontrol field of one record differs from the content of the controlfield of the previous record, the CRITERIA command is true.Value mode In Value mode (that is, when the CRITERIA VALUE parameterhas been specified), you compare two numerical values, testingif they are equal (EQ) or not equal (NE), if one value is greaterthan (GT) or less than (LT) the other value, or if one value isgreater than or equal to (GE) or less than or equal to (LE) theother value. If the test on the two values is satisfied, theCRITERIA command is true; if not, the command is false.Using the CRITERIA commandTo complete the description of the entire test for a logicalfunction, the TEST parameter of a logical processing commandmust specify either one or two CRITERIA commands.Specifying oneCRITERIAcommandIf only one test is to be performed to determine the value of aparticular logical processing function, the form of the TESTparameter is as follows:TEST = criid;The criid is the identifier for the particular CRITERIA command.Parentheses in this format are optional.Specifying twoCRITERIAcommandsIf two CRITERIA commands are needed to determine the true orfalse value for a logical processing function, they may be linkedby either AND or OR. The formats of these TEST parametersmay be as follows:TEST = (criid1, AND, criid2);orTEST = (criid1, OR, criid2);