ReferenceScript nodesUtilities › Text
Is Numeric
True for a number, or text that is one.
ƒIs Numeric
Source Text12Result
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Source Textvalue | any | "12" | – |
Outputs
| Pin | Type |
|---|---|
Resultout | bool |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(((function (v) { return typeof v === "number" ? isFinite(v) : typeof v === "string" && /^[+-]?(\d+\.?\d*|\.\d+)(e[+-]?\d+)?$/i.test(v.trim()); })(12)));In a graph
◆On Scene Start
ƒIs Numeric
Source Text12Result
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.