Special Case Conditions

Navigation:  ScriptLine Properties > Grid Options > Recursive Tokens > [GenTokens] >

Special Case Conditions

Previous pageReturn to chapter overviewNext page

The Special Case Conditions dialog is used to specify under which circumstances a particular paragraph formatting should be used at the end of a line generated using the [GenTokens] token. Each individual condition can be required to be true, false or it can be specified as not relevant (conditions that must be false are often as important as those that must be true).

 

 

Conditions are grouped under the following headers :

 

WeekdaysThese conditions are used to specify if a date must be (or not be) a specific day of the week for the special case to occur.

 

HolidaysThese conditions are used to specify if a holiday of a holidays list must occur (or not occur) on a date for the special case to occur. The Day Before and Day After sub-options are useful when you wish dates that contain holidays to be bounded by specially formatted rules above and below

 

Days of MonthThese conditions are used to specify how a date must be (or not be) positioned with respect to the current month for the special case to occur.

 

MiscellaneousThese are miscelaneous conditions that reflect the fact that, for aesthetic reasons, often paragraph formatting is different depending if the date is at the top or the bottom of the month. For example, often the line that separated weeks will be omitted if it is at the very top or bottom of the month to give the diary a less cluttered look.

 

Most of the conditions are intuitively obvious, except for the following from the Days of Month section :

 

BeforeThe dates, if any that are before the current month. This option only has any meaning if the grid is of the type that starts on the week of the first of the month, or inside a one-line minicalendar with an offset.

 

AfterThe dates after the current month (ie. any date with DayValue from 29-42).

 

InsideThe dates that are inside the month of the GenToken. This condition is often used to display paragraph formatting differently after the end of the month.

 

Current DayThe dates that correspond to the date of the parent minicalendar token. This condition is used in daily or weekly grids where the [GenToken] is inserted in a minicalendar, and has no meaning in a monthly of yearly grid.
Cur. weekThe dates that correspond to the current week of the parent minicalendar token. This condition is used in daily or weekly grids where the [GenToken] is inserted in a minicalendar, and has no meaning in a monthly of yearly grid.
 

 

Cur. spreadAny date that correspond to any of the dates of the current spread (ie. current 2 pages). This is often used either to highlight more than one week (in the case of a 2 weeks/ 2 pages grid, for example) or on the contrary, to display fewer days than a week (in the case of a 2 days/2 pages, for example). This condition is used in daily or weekly grids where the [GenToken] is inserted in a minicalendar, and has no meaning in a monthly of yearly grid.

 

Spread wk.Any date that belongs to the same week as one of the dates of the current spread (ie. current 2 pages). This condition is often used to display the current week, fully, for a daily diary. This condition is used in daily or weekly grids where the [GenToken] is inserted in a minicalendar, and has no meaning in a monthly of yearly grid.

 

EvenAny date whose day of the month (from 1-31) is even (divisible by 2). This setting can be used to produce charts with colors that alternate every 2 lines which improves legibility.

 

OddSame as Even, above, but for dates whose day of the month (from 1-31) is odd (not divisible by 2).

 

Alt. weekAny date that are in alternating weeks. This is used to have, for example, one week shaded, then the next week un-shaded, then the next week shaded, etc...

 

The settings in the Miscellaneous section should all be immediately obvious, except possibly for the following:

 

Even MonthAny date which belongs in a month whose number (1-12) is even (divisible by 2). The even month are February, April, June, ... This is useful to do monthly and yearly planners where months are shaded differently in alternance, as shown below.

 

Odd MonthSame as Even, above, but for dates which belongs in a month whose number (1-12) is odd (not divisible by 2). The odd month are January, March, May, ...

 

First/Last LineThese options allow you to specify that specific line ending options should be used for the very first and very last line generated by the GenTokens token.

 

Finally, if you have selected more than one true condition and/or more than one false condition, it is important to specify what should happen if only some of the conditions are met.

 

 

If the condition that you need to express goes beyond the possibilities of this dialog, then, in the Paragraph Formatting Dialog, you can specify that the line ending should be the result of converting a macro token which allows you total freedom in specifying conditions, yet whose result can in turn use Xtags.


Topic 175915 updated on 12-May-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?specialcases2.htm