2021.2

Table Of Contents
Example
The following Control Script retrieves two Print sections. Then, depending on a value in the
current record, it enables one section or the other, so that only one of the two sections appears
in the output.
var printSections = merge.template.contexts.PRINT.sections;
printSections['Section EN'].enabled = false;
printSections['Section FR'].enabled = false;
if(record.fields.Language === 'FR'){
printSections['Section FR'].enabled = true;
} else {
printSections['Section EN'].enabled = true;
}
properties
The properties object inside the template object (see "template" on the previous page)
contains all default properties of the template file as well as any custom properties.
To view and complement the file properties, select File > Properties on the menu. See "File
Properties dialog" on page965.
Following are the default properties.
Field Type Description
application String Application version when the document
was last saved
author String Original author of the document
company String company name
created Date Date and time on which the document
was created
customProperties
List
A list of defined custom properties
Page 1437