String
The String node in Magick allows you to input and output a string value. It is a fundamental node for working with textual data in your spells.Inputs
a(string, default: ""): The input string value.
Outputs
result(string): The output string value, which is the same as the input string.
Configuration
This node has no additional configuration options.Usage
- Add a String node to your spell.
- Connect the desired input string to the
ainput port. This can be a hardcoded string value, or the output from another node. - The
resultoutput port will emit the same string value that was input. - Connect the
resultoutput to the input of another node as needed in your spell.
Example
Here’s a simple example of how the String node can be used in a spell:Best Practices
- Use the String node whenever you need to input or pass along a string value in your spell.
- Remember that the String node simply passes the input string through to the output unchanged. If you need to modify the string, use other nodes like Join Text or Slice Text.
