2 Report Description Statements

The PRINT DETAIL IF Statement

The PRINT DETAIL IF statement allows printing conditions for detail lines to be specified without affecting the totaling functions.

PRINT DETAIL IF conditional exp

The parameter is:

conditional exp
An expression which will evaluate to zero if false. Otherwise, it will be assumed to be true. It is evaluated at every execution of the DETAIL LINE statement and if zero, the printout for that line will be suppressed. The line's data, however, will be included in all totaling functions.
If the DETAIL LINE statement requires more than 180 characters (including non-printing characters) to be defined, use a DETAIL LINE 0 to continue the statement. This will ensure that a PRINT DETAIL IF statement will execute correctly.

Some examples of this statement follow.


90  PRINT DETAIL IF Amt>200
When the DETAIL LINE is encountered, the variable Amt is evaluated. If Amt is greater than 200, the detail line is printed.


90  PRINT DETAIL IF Security%<10
If the variable Security is equal or greater than 10, the detail line is not printed.


Eloquence Report Manual - 19 DEC 2002