Conditional Rows

Conditional Rows allow table rows to be included or removed from the final document.

Multiple rows can be filtered out based on conditions in the supplied data.

 

1) How Conditional Rows are defined.

In a table row, add a conditional row field:

<<cr_book1>>

which marks the beginning of a set of rows to be optionally filtered out.  The end marker is placed in a row further down the table:

<<er_book1>>

If the data value "book1" is true, all rows between the <<cr_book1>> row and the <<er_book1>> row will be included.  The rows containing the <<cr_>> and <<er_>> are always removed.

TRY: setting the book1 data to false.

 

2) Conditional Rows can be within Repeating Rows

There is no limitation to using conditional rows within tables.  
Conditional rows can control a single row or multiple rows and can be nested within other conditional rows or repeating rows.
As the <<cr_inStock>> conditional row is included within <<rr_newspapers>>, the conditional row will be tested for each data item in "newspapers", and each that have "inStock" equal to true will be included.

 

3) Conditional Rows and Expressions

Expressions may be used in the conditional field in order to test more complex conditions.
They are included in braces and cause the rows between to be included if true.
The rows between the <<cr_{description!=null&&description!=''}>> and the <<er_>> are only included if the "description" of a particular "newspapers" is present (i.e. not equal to null) and is not blank.

Feedback

Invalid Input

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Sorry, this field will only accept letters and numbers, and not special characters, to limit spam.

Invalid Input

Applies To

Docmosis-Java Tornado Cloud
Version(s) ALL ALL ALL