Files
noodl-docs/nodes/string-manipulation/string-mapper.md
Eric Tuvesson 53f0d6320e Initial commit
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: Michael Cartner <32543275+michaelcartner@users.noreply.github.com>
2023-09-05 12:08:55 +02:00

35 lines
2.3 KiB
Markdown

---
hide_title: true
hide_table_of_contents: true
title: String Mapper
---
<##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_. |