You are here: Field Rules Reference > Field Rules Summary > PrintIf

PrintIf

Use this field level rule to determine what text should be placed into the output buffer. The PrintIf rule compares a character string from the extract record to the character string specified in the user-defined condition contained in the data field.

This rule does not support comparison of data strings that contain all numeric characters. This rule does supports overflow.

     
Note The PrtIfNum rule does support comparison of data strings that contain all numeric characters.

The user-defined condition is comprised of one or more user-defined definitions separated by a colon (:). A user-defined definition is comprised of two parameters separated by an equal sign (=). User-defined definition parameters contains the...

Here are some examples:

Inc=Extra premium due to age is included.

Exc=Age premium has been excluded.

Y=Age premium is not applicable.

Inc=Age premium is included.:Exc=Age premium excluded.:Y=N/A

You can use these format flags:

Flag

Description

C

Center

R

Right justify

The system justifies the data by adding spaces in front of the text. If you are using a proportional font, do not use these flags to align the data. Use the JustFld rule for that.

See also