2018.2

Table Of Contents
also available in Post Pagination Scripts.
context
In a Control Script, the context object represents one context in the template.
Which contexts are available in the template can be queried using merge.template.contexts.
The context being merged can be queried using merge.context.
Field Type Description
sections Array
Array of sections (see "section" on page1196) inside a
particular context defined in the template.
Note: When using merge.context.sections keep in mind that
for example 'Section X' might only exist in your Print context,
so using merge.context.sections['Section X'] without
enclosing it in the if statement if (merge.context.type ==
ContextType.PRINT) {} will yield an error when the script
runs for other contexts.
Alternatively, use the template object to access a specific
context: merge.template.contexts.PRINT.sections
['Section X'].
type "ContextType"
on page1187
The context type: PRINT, EMAIL or WEB.
Function Description
"query
(selector)"
on the next
page
Runs a query across all sections in the Print context. This function is only
available in Post Pagination Scripts, which are only applied to the Print
context. See "Post Pagination Scripts" on page766.
Page 1190