2020.1

Table Of Contents
Function Description
"loadjson()" on
page785
Loads JSON data from a URL. This is a simple way to retrieve content
from external systems.
"query()" on
page792
Performs a query in the template's contents and creates a new result set
containing the HTML elements that match the given CSS selector.
"resource()" on
page879
This function returns information about an image resource. It can also
be used to check if a file exists.
"translate()" on
page870
Gets the translation of a source text with an (optional) context. It returns
the message as-is if no translation is found.
Examples of iterator functions
Function Description
"each()"
below
A generic iterator function, to iterate over the elements in the result set.
"for(... in ...)"
on page774
Iterates over the enumerable properties of an object, in arbitrary order. For
each distinct property, statements can be executed.
each()
A generic iterator function, to iterate over the elements in a result set.
Tip
Instead of using the each() function to loop over a result set, you could set the scope of a
Standard script or Post Pagination script to "Each matched element" and access each matched
element directly via the this object. See "Setting the scope of a script" on page383 and "this" on
page834.
Page 771