2019.2

Table Of Contents
If, for example, a script would have the selector p.onlyCanada, the script would apply to all
paragraphs that have the class onlyCanada. (Classes can be defined in the Attributes pane at
the right: select the element in the content and type the class(es) in the Class field.)
The script could then use the results object to hide or show those paragraphs, depending on
the value of the data field Country in the current record:
if (record.fields["Country"] == "CANADA") {
results.show();
} else {
results.hide();
}
Note
This object can't be used in Control Scripts, because they don't have a selector.
Property
Field Type Description
length
Number Number of elements in this result set. Equivalent to calling size().
Functions
The functions below can be called by the results object and by any other result set that is
returned by a query, see "query()" on page1349.
Function Description
"Examples" on
page1296
Adds elements to a set of HTML elements.
"Examples" on
page1297
Adds the specified class to each element in a set of HTML
elements.Has no effect if the class is already present.
"Examples" on Inserts contentafter each element in a set of HTML elements..
Page 1390