Custom Function Parameter and Return Datatypes

The datatypes supported in the parameters and the return types of custom functions and their equivalent JavaScript types are listed in the following table.

Custom Datatype JavaScript Datatype Description
string string Text characters
number double Integer or decimal numbers
boolean bool Boolean value equal to either true or false

In addition to the parameters defined for a custom function, the function also has access to the current context node of the transformation using the standard "this” variable. For more information, see Object Properties for the Current® Context.