Skip to main content

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​

NameTypeDescription
inputnumber or booleanThe value to convert.

Outputs​

NameTypeDescription
outputstringThe 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.