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:

 

name="PageNumber"

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

 

name="ProjectCount"

This condition compares the number to the specified value.

Parameters:

       condition="Greater|Less|Equality"

       value="XX" // XX = Number

 

name="DetailedProjects"

The condition is TRUE if the user has selected detailed projects.

 

 

Conditions operational in Projects loop only:

 

name="TaskCount"

This condition compares the number to the specified value.

Parameters:

       condition="Greater|Less|Equality"

       value="XX" // XX = Number

 

name="ProjectNumber"

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

 

name="ProjectDescExist"

The condition is TRUE if the current project description exists

 

name="ProjectHidden"

The condition is TRUE if the current project is hidden

 

name="ProjectPayable"

The condition is TRUE if the current project is payable

 

name="DetailedTasks"

The condition is TRUE if the user has selected detailed tasks.

 

 

Conditions operational in Tasks loop only:

 

name="PeriodCount"

This condition compares the number to the specified value.

Parameters:

       condition="Greater|Less|Equality"

       value="XX" // XX = Number

 

name="TaskNumber"

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

 

name="TaskDescExist"

The condition is TRUE if the current task description exists.

 

name="TaskHidden"

The condition is TRUE if the current task is hidden

 

name="TaskTrackOnly"

The condition is TRUE if the current task is marked as "Track Only"

 

name="TaskPayable"

The condition is TRUE if the current task is payable

 

name="DetailedPeriods"

The condition is TRUE if the user has selected detailed periods.

 

 

Conditions operational in Periods loop only:

 

name="PeriodNumber"

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

 

name="PeriodPaidUp"

The condition is TRUE if the current period was paid.

 

name="PeriodDescExist"

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:

       Template language overview

       Translation tables

       Loops

       Macros

       Comments

       Parameters

 

 


Time Tracker - Download - Buy now