Function reference

The Functions palette of the visual mapper offers the functions below, in groups. Selecting a function places it on the diagram as a block; see Function blocks.

Inputs marked with * accept a constant in the block's properties panel. An input that expects a number accepts only digits, an optional minus sign, and an optional decimal point. In a grouped loop, the Collection functions and join work over all records of the group; see Grouping.

GroupFunctionInputsResultDescription
Collectioncountvalueswhole numberNumber of items in a collection.
Collectiondistinctvalueslist of textDistinct text values of a collection.
CollectionfirstvaluesvalueFirst item of a collection.
CollectionmaxvaluesnumberLargest value of a collection.
CollectionminvaluesnumberSmallest value of a collection.
CollectionsumvaluesnumberAdd up a collection.
Conversionto-booleanvaluetrue/falseText to boolean: true, 1 and yes are true.
Conversionto-numbervaluenumberText to number; anything unparsable becomes 0.
Conversionto-stringvaluetextValue as text.
Dateto-datevalue, format*textReformat a date; the input must be an ISO date or date-time (yyyy-mm-dd, yyyy-mm-ddThh:mm:ss) and the format is an XSLT picture, for example [D01].[M01].[Y0001].
Datetodayformat*textCurrent date in the given format, written as an XSLT picture such as [Y0001]-[M01]-[D01].
Logicalanda, btrue/falseBoth conditions hold.
Logicalequala, b*true/falseCompare as text.
Logicalexistsvaluetrue/falseThe node is present and not empty.
Logicalgreatera, b*true/falsea is greater than b, compared as numbers.
Logicalifcondition, then*, else*valueCondition ? then : else.
Logicallessa, b*true/falsea is less than b, compared as numbers.
Logicalnotvaluetrue/falseNegate a condition.
Logicalora, btrue/falseAt least one condition holds.
Mathadda*, b*numbera + b.
Mathdividea*, b*numbera / b; division by zero yields 0.
Mathmultiplya*, b*numbera * b.
Mathroundvalue, digits*numberRound to a number of decimals.
Mathsubtracta*, b*numbera - b.
Stringconcatvalue*textJoin all inputs into one string.
Stringjoinvalues, separator*textJoin a collection with a separator.
Stringlowervalue*textLower case.
Stringpad-leftvalue*, length*, fill*textPad a string on the left up to a total length.
Stringreplacevalue*, pattern*, replacement*textReplace every match of a regular expression. In the replacement $1 to $9 insert what a group of the expression matched; any other $ or \ is written as it is.
Stringsubstringvalue*, start*, length*textPart of a string: value, 1-based start, length.
Stringtrimvalue*textRemove leading and trailing white space.
Stringuppervalue*textUpper case.
Utilitydefaultvalue, fallback*valueThe value, or the fallback when it is missing or empty.
Utilitymap-valuevalue, pairs*, fallback*textTranslate a value through a list such as A=Active;B=Blocked.

Where no function fits, a target field can take an XPath expression instead. See Constants and expressions.

Book a 30-min review