API ReferenceGE Extensionsflowgraphnodesutil
To String
- **Node Name:** `To String`
Overview
- Node Name:
To String - Category:
simple - File:
extensions/flowgraph/nodes/util/tostring.lua
Converts any input value to a string using Lua's tostring(). As a simple category node, it requires no flow connections.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
value | any | - | Value to attempt to convert to a string |
Output Pins
| Pin | Type | Description |
|---|---|---|
value | string | Result of tostring() conversion |
Internals
Key Methods
| Method | Description |
|---|---|
work() | Applies tostring() to the input value |
How It Works
- Reads the input
valuepin (any type). - Calls Lua's
tostring()on it. - Outputs the string representation.
Usage Example
-- Convert number to string:
-- value = 42 → output = "42"
-- Convert boolean to string:
-- value = true → output = "true"
-- Convert nil:
-- value = nil → output = "nil"Key Dependencies
tostring()- Lua standard library
See Also
- Route Distance (Flowgraph Node) - Related reference
- Closest Road (Flowgraph Node) - Related reference
- Custom Lua (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide