ReferenceScript nodesUtilities
Is Valid
Goes to Is Valid when there's something there, Is Not Valid when it's nothing or empty text.
▸Is Valid
Is Valid
Input ObjectIs Not Valid
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Input Objectvalue | any | – | – |
Outputs
| Pin | Type |
|---|---|
Is Validvalid | what happens next |
Is Not Validinvalid | what happens next |
The code it becomes
The graph below written as a script would write it.
// On Scene Startif ((function (v) { return v !== undefined && v !== null && v !== ""; })("")) {} else {}In a graph
◆On Scene Start
▸Is Valid
Is Valid
Input ObjectIs Not Valid
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.