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>
This commit is contained in:
Eric Tuvesson
2023-09-05 12:08:55 +02:00
commit 53f0d6320e
2704 changed files with 76354 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
---
hide_title: true
hide_table_of_contents: true
title: String Format
---
<##head##>
# String Format
This node is used to construct a new text <span className="ndl-data">string</span> from multiple other text <span className="ndl-data">strings</span>.
<div className="ndl-image-with-background l">
![](/nodes/string-manipulation/string-format/stringformat-node.png)
</div>
The <span className="ndl-node">String Format</span> node needs a format input where the output <span className="ndl-data">string</span> and string variables are defined.
<div className="ndl-image-with-background l">
![](/nodes/string-manipulation/string-format/stringformat-visual.png)
</div>
<##head##>
## Inputs
| Data | Description |
| -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <span className="ndl-data">Format</span> | This input contains the format string, that is the template that will be used to generated the output. Any part of the template that is encapsulated in bracets will generate an input port. E.g. setting the string format to _{Hours} hours ago_ will create an input port called _Hours_. |
| <span className="ndl-data">Your `{strings}`</span> | The input ports generated from the **Format** input. |
## Outputs
| Data | Description |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| <span className="ndl-data">Formatted</span> | The formatted string, e.g. if the string format is _{Hours} hours ago_ and the _Hours_ input is connected to a value of _9_ the |
| formatted string will be _9 hours ago_. |

View File

@@ -0,0 +1,34 @@
---
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_. |

View File

@@ -0,0 +1,33 @@
---
hide_title: true
hide_table_of_contents: true
title: Substring
---
<##head##>
# Substring
This node lets you extract a part of a <span className="ndl-data">string</span> given a start and end character position.
<div className="ndl-image-with-background l">
![](/nodes/string-manipulation/substring/substring_node.png)
</div>
<##head##>
## Inputs
| Data | Description |
| ---------------------------------------- | --------------------------------------------------------------- |
| <span className="ndl-data">String</span> | The source string where the substring should be extracted from. |
| <span className="ndl-data">Start</span> | The character index of the start of the substring. |
| <span className="ndl-data">End</span> | The character index of the end of the substring. |
## Outputs
| Data | Description |
| ---------------------------------------- | ------------------------ |
| <span className="ndl-data">Result</span> | The extracted substring. |