Skip to main content

Map number to text

Map a number to a text.

Example
# 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

Number mappingREQUIRED

A list of mappings from numbers to text. The mapping is a list of key-value pairs, where the key is the number and the value is the text.

Default value

The default value to return if the provided number is not found in the mapping.

Input

Number
Any number.

Output

Text values

The text values corresponding to the mapped number.