Map number to text
Map a number to a text.
# Example 1
Parameters:
- 0: zero
- 1: one
- 2: two
Input: 1
Output: one
# Example 2
Parameters:
- 1: one
- 2: two
- Default: zero
Input: 42
Output: zero
Parameters
A list of mappings from numbers to text. The mapping is a list of key-value pairs, where the key is the number (matched by exact equality) and the value is the text. Optional — an empty table is a pure pass-through to the default value.
The default value to return if the provided number is not found in the
mapping. When unset and no mapping matches, the record fails with
NoItemMatchingCondition.
Input
Output
Each row of the mapping table exposes its own optional output connector, labeled with the entry's text value. Only the connector of the matching entry emits (the entry's text); the others stay empty for that record.
Present only when the Default value parameter is set. Emits the default
text when no mapping entry matches.
Always present. Emits the matched entry's text, or the default text when
no entry matches. When nothing matches and no default is configured, the
record fails with NoItemMatchingCondition.