Zetect Expressions & Transforms Back to zetect.inSwitch portal ⇄

Transform Reference Overview

Every transform type Zetect supports, grouped by what it works on. Each type has its options, their defaults and an example of input and output. The table below lists all 17 types.

  • Reshape text. Change case, trim, replace, join, split and match regular expressions.
  • Calculate. Add, subtract, multiply, divide and take remainders.
  • Work with dates. Reformat dates, shift them, convert raw timestamps and get today's date.
  • Decide. Map values through a table, pick the first matching rule, or choose between two branches.
  • Compose. Return fixed values, generate unique identifiers and chain steps in a pipeline.

Before you begin

Key concepts

type
Required on every transform. Not case-sensitive.
input
The value a type works on. If it is left out inside a pipeline, the previous step's result is used. Outside a pipeline, leaving it out means there is no input.
Tokens
Every text option, including input, can contain ${name} tokens. A token for a missing attribute becomes empty text.
No value
What a type returns when it has nothing to work on or can't run. A blank or missing final result is not sent.

Quick reference

TypeCategoryWhat it does
uppercaseStringConverts the input to upper case.
lowercaseStringConverts the input to lower case.
trimStringRemoves spaces from both ends of the input.
replaceStringReplaces every occurrence of literal text.
concatStringJoins a list of values in order.
splitStringSplits the input on a delimiter and returns one part.
regexStringExtracts a capture group, or replaces every match of a regular expression.
mathNumericAdds, subtracts, multiplies, divides or takes the remainder of two numbers.
date-formatDateReads a date or raw timestamp and writes it in another format.
date-addDateAdds days, months and years to a date.
current-dateDateReturns the current date and time.
lookupLogicMaps the input to a value from a table, with a default.
decisionLogicReturns the result of the first rule whose attribute conditions all match.
ifLogicReturns one of two values or transforms depending on attribute conditions.
staticUtilityReturns a fixed value.
uuidUtilityReturns a new random unique identifier.
pipelineUtilityRuns steps in order, passing each result to the next.

Tasks in this topic