ProtoFlux:Data Model Boolean Toggle: Difference between revisions

From Resonite Wiki
Made the feature of using a write with data model boolean toggle node into an information note to be more clear about this feature.
 
Line 36: Line 36:


=== OnSet ([[Impulses|Continuation]]) ===
=== OnSet ([[Impulses|Continuation]]) ===
Fires when Set is pulsed.
Fires when Set is pulsed or Toggle has switched the state to True.


=== OnReset ([[Impulses|Continuation]]) ===
=== OnReset ([[Impulses|Continuation]]) ===
Fires when False is pulsed.
Fires when Reset is pulsed or Toggle has switched the state to False.


=== * ([[Types:Bool|bool]]) ===
=== * ([[Types:Bool|bool]]) ===

Latest revision as of 14:26, 1 December 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 (Call)

Set the state to True.

Reset (Call)

Set the state to False.

Toggle (Call)

Toggle the state to the opposite state.

Outputs

OnSet (Continuation)

Fires when Set is pulsed or Toggle has switched the state to True.

OnReset (Continuation)

Fires when Reset is pulsed or Toggle has switched the state to False.

* (bool)

The current state.