Skip Insert

Navigation:  ScriptLine Properties >

Skip Insert

Previous pageReturn to chapter overviewNext page

Property of the ScriptLine: Inserts.

 

This property is used to specify when to skip/exclude an Insert script line.

 

This is useful for diaries where the number of pages inserted depends on the number of days in February (ie. if the current year is a leap year or not).

 

Sometimes the rules for these are so complicated that the piecemeal use of the skip line property on individual lines of the insert block gets too complex, and it is just easier to create 2 independent insert block, one for leap years and one for non-leap years, and use the Skip Insert property to only have one of the 2 active for any given script year.

 

Skipping can be based on based on the following criteria:

 

Ignore

This option means that the current Insert ScriptLine is not skipped due to this option.

Leap Year Script

The current Insert ScriptLine will be skipped whenever the Year property of the Current Script is a leap year.

Non-Leap Year Script

The current Insert ScriptLine will be skipped whenever the Year property of the Current Script is not a leap year.

Odd Script Year

The current Insert ScriptLine will be skipped whenever the Year property of the Current Script is odd (not evenly divisible by 2).

Even Script Year

The current Insert ScriptLine will be skipped whenever the Year property of the Current Script is even (not evenly divisible by 2).

Leap Year Dates

Any Insertion Date (repeating, specific or variable) which does belong to a leap year will be skipped.

Non-Leap Year Dates

Any Insertion Date (repeating, specific or variable) which does not belong to a leap year will be skipped.

   

This property is reminiscent of the February 28 and March 1 properties, but it is, in fact, fundamentally different.

 

The first superficial difference is that the February 28 and March 1 properties specify when to include a date, as opposed to when to exclude it.

 

But the fundamental difference is that the February 28 and March 1 properties specify whether specific dates (namely February 28 and March 1) should be included, while the Skip Insert property specifies whether the entire Insert Block should be skipped, for any date (usually based on the Year property of a Script), as shown in the example on the right.

 

See also: February 28, March 1st, Insert Occurrence, Ignore Sidedness, Insert First Page, Insertion Rule, Skip Line.


Topic 181060 updated on 02-Apr-2019.
Topic URL: https://www.qppstudio.net/webhelp_xe3/index.html?skip-insert.htm