Show TOC

 Example: Conditional Output with Alternative

With the following syntax, the value for the density is output if the density is greater than or equal to 1. If the density is less than 1, the phrase Density is less than 1 is displayed.

<15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/TL)[D:Value]>

<15CIF001><03EHS_L_TEXT(CUST-100000000000031)[D:Density is less than 1]>

<15EIF001>

Explanation of the Syntax

Line 1

Explanations

<15

Symbol type

<15BIF

Begin conditional output

<15BIF001

Conditional output no. 1

<15BIF001(AND

Link conditions

<15BIF001(AND:01G1013005VA

Characteristic with data that must fulfill the condition

<15BIF001(AND:01G1013005VAGE

Operator

<15BIF001(AND:01G1013005VA GE1

Comparison value

<15BIF001(AND:01G1013005VA GE 1)> <01G1013005VA (;*/TL)[D:Value]>

Characteristic that is output if the condition is fulfilled

<15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(; * /TL)[D:Value]>

Output of all value assignments in the characteristic

<15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/ TL )[D:Value]>

Separation of multiple value assignments by line feed

<15BIF001(AND:01G1013005VA GE 1)><01G1013005VA(;*/TL) [D:Value] >

Description of characteristic

Line 2

Explanations

<15CIF001

Begin alternative for conditional output no. 1

<15CIF001> <03EHS_L_TEXT(CUST-100000000000031) [D:Density is less than 1]>

Phrase that is output if the condition is not fulfilled

<15CIF001><03EHS_L_TEXT(CUST-100000000000031) [D:Density is less than 1]>

Phrase text

Line 3

Explanations

<15EIF001>

End conditional output no. 1