Skip to main content

To String

Runs on: Shared — pure logic, runs on the Streamerly backend or inside a chatbox overlay.

The To String node converts any incoming value into a string. Numbers become their digit representation (for example, 42 becomes "42"), booleans become "true" or "false", and values that are already strings pass through unchanged. This conversion always succeeds — unlike To Number, it will never stop the flow.

Use this node whenever a downstream node requires a string but you are feeding it data that arrives as a number or boolean. It is also useful before a String Op node when you want to concatenate a numeric value like a bit count or score into a longer message.

Inputs

NameTypeDescription
inputanyThe value to convert to a string.

Outputs

NameTypeDescription
outputstringThe string representation of the input value.

Example

After a Channel Cheer trigger, connect the bits output (a number) to a To String node, then feed the result into a String Op node set to concatenate it with the text " bits — thank you!". The final string can be passed to a TTS effect or sent as a chat message.