To Number
Runs on: Shared (backend or chatbox overlay).
Converts a value to a number. If it can't be parsed, such as "hello" or an empty string, the flow branch stops silently instead of passing an invalid value on. That makes it safe to use on viewer-typed text before math nodes, variable setters or comparisons.
Inputs
| Name | Type | Description |
|---|---|---|
input | any | The value to convert. Strings like "42" or "3.14" succeed. Non-numeric strings stop the flow. |
Outputs
| Name | Type | Description |
|---|---|---|
output | number | The parsed number. Emitted only when conversion succeeds. |
Example
A !setvolume command extracts its argument with a String Op node and passes it to To Number. A valid number like 75 continues to a Math Check (0 to 100) and an OBS Set Volume effect. !setvolume loud stops at To Number.