The JavaScript processor implements the following methods that are not defined in standard JavaScript. You can use these extensions in any location where the Script accepts a JavaScript expression.
Most of the functions are JavaScript implementations of transformers or actions.
extra.sum(number1, number 2, ...)
Returns the sum of the parameters.
extra.allSame(param1, param2, ...)
Returns true if all the parameters have the same value.
lookup.<lookup_name>(key)
This function accesses a global lookup table by name.
In the Script, define a global
InlineTable
or
XMLLookupTable
. Then, in a JavaScript expression, you can access the table. For example, if you define a global