Adding element conditions

The Condition option on the Element menu allows you to attach a condition to an element that controls whether or not the element is mapped. On the Condition window, specify which record fields or memory variables are to be checked against what other record fields, memory variables, or constants before mapping the element.

If one or more of the conditions is dependent upon the value of data in another element, you must make that other element a conditional variable. For more information about conditional variables, see “Mapping to a conditional variable”.

You can set up one or two conditions. If you set up two conditions, both must be true for the mapping to occur. This is the equivalent of linking the two conditions with a Boolean AND.

StepsAttaching a condition to an element

  1. Do one of the following:

  2. Select the top the up arrow to choose the type of data to be evaluated in the condition. Choices are:

  3. Select the middle up arrow to choose the operator to be used in the condition. Choices are:

  4. Under Condition 1 (or 2), select the bottom up arrow to choose the type of data against which the data in the condition is evaluated. If you choose:

  5. Select OK, and the program enters STRVAR and the constant value into the bottom two text boxes.