ReferenceScript nodesUtilities › Flow Control
Flip Flop
Goes to a, then b, then a again, turn by turn.
⑂Flip Flop
A
B
Is A
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Outputs
| Pin | Type |
|---|---|
Aa | what happens next |
Bb | what happens next |
Is AisA | bool |
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
◆On Scene Start
⑂Flip Flop
A
B
Is A
ƒ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.