Skip to main content

Text: Map To Number

String → number lookup. Reads a string and emits a number based on a static mapping table. Every matching entry emits — on its own dedicated connector and on result. When no entry matches, falls back to the static Default value, or fails the step if it is not set.

Each table entry also exposes its own dedicated output connector — useful for routing the input down a specific downstream branch.

Example
Items:
"low" → 1
"medium" → 5
"high" → 10
Default: 0

Input: "medium" → Result: 5
Input: "extreme" → Result: 0

Parameters

Items

Lookup table — one entry per string-to-number mapping. Each entry has:

  • Value — string to match against the input (exact equality).
  • Number — number emitted when the entry matches.

Each entry adds its own dedicated per-entry output connector, labeled with the entry's target number. An empty table is a pure pass-through to the default.

Default

Static fallback emitted when no entry matches. Leave empty to fail the step on no-match.

Input

Stringrequired
The string to look up.

Output

Result

The matched number(s) (or the default fallback).

Default

The default value, fired on no-match. This connector only exists when the Default parameter is set.

Plus one dedicated output per configured entry (labeled with the entry's number), fired only when that entry matches.