2018.2

Table Of Contents
Examples of iterator functions
Function Description
"each()" on
page1136
A generic iterator function, to iterate over the elements in the result set
"for(... in ...)"
on page1139
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
logger
This is a global ScriptLogger object that allows logging messages such as error, warning or
informational messages. The messages will appear in the Messages pane (see "Preflight
Results and Messages" on page869 and "Designer User Interface" on page772).
Methods
These are the methods of the logger object.
Method Parameters Description
error()
message: string
Logs an error message
info() message: string Logs an informational message
warn() message: string Logs a warning message
record
The record object gives access to the record that is currently being merged with the template.
Properties
Field Type Description
fields
Array The field values that belong to this record. You can access a
specific field value using either a numeric index or the field
Page 1103