Value Mapper
Conditionally maps one value to another
Processing
For each input row, the step maps an input value to an output value.
The output value is made available in results.
Settings
Name | Type | Description |
---|---|---|
Input |
any |
Value to pass to conditions that are functions. Evaluated for each input row |
Mapping |
list of dicts |
A list specifying the mapping rules. Each entry is a dict of the form The step evaluates conditions in given order. If a condition is a function, it is called with the input value as first argument and the return value is cast to boolean. I the return value casts to If a condition is not a function, it is cast to boolean. If it casts to The first condition that holds determines the resulting mapped value. Evaluated for each input row |
Default |
any |
The default value to map to if none of the conditions matches. Evaluated for each input row |
Results
Name | Type | Description |
---|---|---|
mapped |
any | The mapped value. |