ProtoFlux:Data Model Boolean Toggle: Difference between revisions

From Resonite Wiki
Extra documentation on the Boolean Toggle, including a fun fact!
change node ui to continuation
Line 10: Line 10:
|Outputs=
|Outputs=
[
[
{"Name":"Set", "Type":"Impulse"},
{"Name":"Set", "Type":"Continuation"},
{"Name":"Reset", "Type":"Impulse"},
{"Name":"Reset", "Type":"Continuation"},
{"Name":"*", "Type":"bool"}
{"Name":"*", "Type":"bool"}
]
]

Revision as of 16:38, 14 January 2024

Boolean Latch
Set
Set
Reset
Reset
Toggle
*
Flow


The Data Model Boolean Toggle or Boolean Latch is a node that can be pulsed to toggle a Data Model Boolean between true and false.

Data Model Boolean Toggle is a Data Model Store with impulses to set, reset and toggle itself. This means you can use a Write to change the value directly if you input the * bool into the Write's Variable field.

Inputs

Set (ISyncOperation)

Set the state to True.

Reset (ISyncOperation)

Set the state to False.

Toggle (ISyncOperation)

Toggle the state to the opposite state.

Outputs

OnSet (Continuation)

Fires when Set is pulsed.

OnReset (Continuation)

Fires when False is pulsed.

* (bool)

The current state.