Files
Eric Tuvesson 656e5fc8d2 chore: Upgrade Docusaurus from v2 to v3 (#52)
* chore: Upgrade Docusaurus from v2 to v3

* chore: Update "Test build" GH workflow

* fix: build

All markdown is processed as MDX

* fix: Broken links
2024-01-12 16:53:22 +01:00

35 lines
2.3 KiB
Markdown

---
hide_title: true
hide_table_of_contents: true
title: String Mapper node
---
{/*##head##*/}
# String Mapper
This node receives an input <span className="ndl-data">string</span>, looks it up in a mapping table, and outputs the correct output <span className="ndl-data">string</span>.
You define your own string mappings. You can also define a default value to output if the <span className="ndl-node">String Mapper</span> node receives an unspecified input <span className="ndl-data">string</span>.
<div className="ndl-image-with-background l">
![](/nodes/string-manipulation/string-mapper/string_mapper_node.png)
</div>
{/*##head##*/}
## Inputs
| Data | Description |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <span className="ndl-data">Input 0..N</span> | The input strings, any string that matches one of these values will be mapped. |
| <span className="ndl-data">Mapping 0..N</span> | The mapped strings, for each of the input strings there can be a corresponding mapped string. |
| <span className="ndl-data">Input String</span> | The string that will be used to look up mapping, e.g. if the string matches _Input 2_ then the _Mapped String_ output will be the value of _Mapping 2_. |
## Outputs
| Data | Description |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <span className="ndl-data">Mapped String</span> | The mapped string that corresponds to the value of _Input String_, e.g. if the _Input String_ value matches _Input 2_ then this output will be the value of _Mapping 2_. |