Conditions
Syntax:
<if name="condition name"><else name=" condition name "/></if name=" condition name ">
Conditions let SunRav BookEditor put one of two parts of a template to an output document. Blocks enclosed in the <if> tag are not limited to a plain text and can contain other control tags.
Condition |
Description |
SectionIndexIs {eq="number"|lt="number"|gt="number"} |
Evaluates the book contents column number. True if the current column index is equal, lower than or greater than the specified number. 0 - chapter title column 1 - chapter ID column |
ItemAbsIndexIs {eq="number"|lt="number"|gt="number"} |
Evaluates the book chapter order number. True if the current chapter number is equal, lower than or greater than the specified number 1 - chapter ID column |
ItemLevelIs {eq="number"|lt="number"|gt="number"} |
Evaluates the book chapter nested level. True if the current chapter level is equal, lower than or greater than the specified number 1 - chapter ID column |