Motion
Get Motion

ReferenceScript nodesUtilities › Flow Control

Gate

Lets enter through to exit while it's open. Starts open unless Start Closed is on.

Inputs

PinTypeStarts atNotes
Enterenterwhat happens next––
Openopenwhat happens next––
Closeclosewhat happens next––
Toggletogglewhat happens next––
Start ClosedstartClosedboolfalse–

Outputs

PinType
Exitexitwhat 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

The node with what starts it and Print to show what it gives, as Studio draws them.