For X12 e.g. C0807C0907L101112C1110C1210L131415C1413C1513L161718C1716C1816L192021C2019C2119; If conditionString start with
R - RequiredCondition - Required R0708R0910 At least one of 07 and 08 is required, and at least one of 09 and 10 is required.
C - ConditionalCondition - Conditional C0102C030405 If 01 is present, then 02 is required. If 03 is present, then both 04 and 05 are required.
E - ExclusionCondition - Exclusion E060810 Only one of 06, 08, or 10 may be present.
L - ListCondition - List Conditional L060810 If 06 is present, then at least one of 08 or 10 is required.
P - PairedCondition - Paired P060708 If any of 06, 07, or 08 are present, then all are required.
For UNEDIFACT;
D1 - OneAndOnlyOneCondition (One and only one D1(010,020,050) Exactly one of the items at position 01, 02, and 05 must be present.)
D2 – PairedCondition (All or none D2(010,020) The items at 01 and 02 are both included or both excluded.)
D3 - RequiredCondition (One or more D3(010,030,040) At least one of the items at 01, 03, and 04 must be included.)
D4 - ExclusionCondition (One or none D4(030,040,050) At most, one of the items at 03, 04, and 05 can be included, or all may be excluded.)
D5 - ConditionalCondition (If first, then all D5(030,040,050) If the first item (at position 03) is present, then all of the others (at 04 and 05) must be present. However, if items at 04 and 05 are present, the first need not be present.)
D6 - ListCondition (If first, then at least one D6(030,040,050) If the first item (at position 03) is present, then at least one of the others (at 04 and 05) must be present. However, if the item at 04 and/or 05 is present, the first need not be present.)
D7 - IfFirstThenNoneCondition (If first, then none D7(030,040,050) If the first item (at position 03) is present, then the items at 04 and 05 cannot be included.)