Conditions |
Syntax:
<#if name="condition name"><#else name="condition name"/><#/if name="condition name">
Conditions let the application put one of two parts of template to output document. Blocks enclosed in <if> tag are not limited to plain text and can contain other control tags.
Available names of conditions:
The condition is TRUE if the current page number is equal to the specified value. Parameters: value="XX" // XX is a number or "last" offset="XX" // XX - positive or negative offset added to the current page number
This condition compares the number to the specified value. Parameters: condition="Greater|Less|Equality" value="XX" // XX = Number
The condition is TRUE if the user has selected detailed projects.
Conditions operational in Projects loop only:
This condition compares the number to the specified value. Parameters: condition="Greater|Less|Equality" value="XX" // XX = Number
The condition is TRUE if the current project number is equal to the specified value. Parameters: value="XX" // XX = Number offset="XX" // XX - positive or the negative offset added to current project number
The condition is TRUE if the current project description exists
The condition is TRUE if the current project is hidden
The condition is TRUE if the current project is payable
The condition is TRUE if the user has selected detailed tasks.
Conditions operational in Tasks loop only:
This condition compares the number to the specified value. Parameters: condition="Greater|Less|Equality" value="XX" // XX = Number
The condition is TRUE if the current task number is equal to the specified value. Parameters: value="XX" // XX = Number offset="XX" // XX - positive or the negative offset added to current task number
The condition is TRUE if the current task description exists.
The condition is TRUE if the current task is hidden
The condition is TRUE if the current task is marked as "Track Only"
The condition is TRUE if the current task is payable
The condition is TRUE if the user has selected detailed periods.
Conditions operational in Periods loop only:
The condition is TRUE if the current period number is equal to the specified value. Parameters: value="XX" // XX = Number offset="XX" // XX - positive or the negative offset added to current period number
The condition is TRUE if the current period was paid.
The condition is TRUE if the current period description exists.
For example:
<#if name="ProjectDescExist"> ... <#/if name="ProjectDescExist">
<#if name="DetailedPeriods"> ... <#else name="DetailedPeriods"/> ... <#/if name="DetailedPeriods">
See also:
|