Motion
Get Motion

ReferenceScript nodesUtilities › Flow Control

Flip Flop

Goes to a, then b, then a again, turn by turn.

Inputs

PinTypeStarts atNotes
inwhat happens next––

Outputs

PinType
Aawhat happens next
Bbwhat happens next
Is AisAbool

The code it becomes

The graph below written as a script would write it.

let q2 = false;let s2_isA = false;// On Scene Startq2 = !q2;s2_isA = q2;if (q2) {    scene.log(s2_isA);} else {}

In a graph

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