To String
Runs on: Shared (backend or chatbox overlay).
Converts a number or boolean to text: 42 becomes "42", and booleans become "true" or "false". It always succeeds, unlike To Number. Use it when a downstream node needs a string, or before a String Op node to put a Bits count or score into a longer message.
Objects such as a User, Message or Event can't be connected, because they have no single text form. To get a viewer's name, connect the User to an Extract node and pick the user_name field, which already outputs text.
Inputs
| Name | Type | Description |
|---|---|---|
input | number or boolean | The value to convert. |
Outputs
| Name | Type | Description |
|---|---|---|
output | string | The text form of the input. |
Example
After a Channel Cheer trigger, convert bits with To String, then use a String Op node set to concatenate it with " bits - thank you!" and send the result to TTS or chat.