Insert Conditional Sections

Top Previous Topic Next Topic  Print this topic

Overview: This dialog can be used for editing Conditional Sections.

 

Accessing: the Conditional Section button located in the Dynamic Content group under the Insert tab must be selected.

 

insert_conditional_sections05

 

The following dialog box will be displayed:

 

Insert_conditional_sections

 

To edit the expression, the Add button must be selected.

 

insert_conditional_sections04

 

To delete a condition, firstly it must be selected and then the Remove button pressed.

 

Example:

 

Step 1: Firstly, a .xml data source must be assigned. The following XML is used for the current example:

 

cond_section_1

 

Step 2: A Repeating Section, repeated after /Root/books/book must be inserted

 

cond_section_2

 

 

Step 3: A Conditional Section that will display different content, depending on each expression's truth value, must be inserted

 

cond_section_3

 

Note:

The fallback section will display the content defined by the user only if the conditions are not fulfilled. For this example, if the first ("@genre=1") and second ("@genre=2") conditions are not met, the fallback section will display its content only when the book's genre is equal to "3".

 

The following Conditional Section will be inserted:

 

cond_section_4

 

 

Step 4: The sections must be customized

 

cond_section_5

 

Step 5: The output will look like pictured below.

 

cond_section_6