ProtoFlux:Data Model Boolean Toggle: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Data Model Boolean Toggle (ProtoFlux) to ProtoFlux:Data Model Boolean Toggle: Creating protoflux Namespace
added link to impulses
Line 19: Line 19:
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.
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 (ProtoFlux)|Data Model Store]] with impulses to set, reset and toggle itself. This means you can use a [[Write (ProtoFlux)|Write]] to change the value directly if you input the * bool into the [[Write (ProtoFlux)|Write]]'s Variable field.  
Data Model Boolean Toggle is a [[Data Model Store (ProtoFlux)|Data Model Store]] with impulses to set, reset and toggle itself. This means you can use a [[ProtoFlux:Write|Write]] to change the value directly if you input the * bool into the [[ProtoFlux:Write|Write]]'s Variable field.  


== Inputs ==
== Inputs ==


=== Set (ISyncOperation) ===
=== Set ([[Impulses|Impulse]]) ===
Set the state to True.
Set the state to True.


=== Reset (ISyncOperation) ===
=== Reset ([[Impulses|Impulse]]) ===
Set the state to False.
Set the state to False.


=== Toggle (ISyncOperation) ===
=== Toggle ([[Impulses|Impulse]]) ===
Toggle the state to the opposite state.
Toggle the state to the opposite state.


== Outputs ==
== Outputs ==


=== OnSet (Continuation) ===
=== OnSet ([[Impulses|Continuation]]) ===
Fires when Set is pulsed.
Fires when Set is pulsed.


=== OnReset (Continuation) ===
=== OnReset ([[Impulses|Continuation]]) ===
Fires when False is pulsed.
Fires when False is pulsed.



Revision as of 00:43, 4 February 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 (Impulse)

Set the state to True.

Reset (Impulse)

Set the state to False.

Toggle (Impulse)

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.