ListCheck
All validation programs
Checks for the presence of a certain value in a list and takes action based in whether it is found in the list.
Format of Parameters
ListName ListValue Operand (IfTrueAction)
Where:
| ListName | Name of the list to be checked. |
ListValue
|
The value that may or may not be in the list. This can be a variable, literal value in double quotes, or . |
Operand
|
Either InList (indicating the value is in the list) or OutList (indicating the value is not in the list). These are case-sensitive. |
| (IfTrueAction) | Optional. Action to be taken if the test is true: If the operand is InList, this action will be taken only if the value is in the list. If the operand is OutList, this action will be taken only if the value is not in the list. If omitted, a general message is displayed. |
Example
| ListName: | 2010AAPERQual |
| ListValue: | TE |
| Operand | OutList |
| (IfTrueAction) | (BusinessRules.Utilities DisplayErrorByNumber 32217) |
This example issues a message if the data in the PER segment does not include a telephone number. We used ListInsert to create a list containing the values in each Communication Number Qualifier in the segment, and then use ListCheck to issue an error message if the list does not contain the list value "TE".
Message 32217 is a custom message in file CustomerFSBRERRS.txt.
The format of DisplayErrorByNumber is different for rules used by Analyzer.![]()