ReferenceScript nodesUtilities › Flow Control
Gate
Lets enter through to exit while it's open. Starts open unless Start Closed is on.
⑂Gate
EnterExit
Open
Close
Toggle
Start Closed
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Enterenter | what happens next | – | – |
Openopen | what happens next | – | – |
Closeclose | what happens next | – | – |
Toggletoggle | what happens next | – | – |
Start ClosedstartClosed | bool | false | – |
Outputs
| Pin | Type |
|---|---|
Exitexit | what happens next |
The code it becomes
The graph below written as a script would write it.
let q2 = undefined;// On Scene Startif (q2 === undefined) q2 = !(false);if (q2) {}In a graph
◆On Scene Start
⑂Gate
EnterExit
Open
Close
Toggle
Start Closed
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.