Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:DataModelBooleanToggle: Difference between revisions

The Data Model Boolean Toggle can be pulsed to toggle a Data Model Boolean between true and false.
Xeravax (talk | contribs)
Manual Sync from my own PC - wiki-bot(at)stefanocoding.me - https://github.com/Xeravax/mediawiki-simple-sync
Electra (talk | contribs)
Added info about writing directly.
 
Line 1: Line 1:
{{SHORTDESC: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.}}
{{SHORTDESC:The Data Model Boolean Toggle can be pulsed to toggle a Data Model Boolean between true and false.}}
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=Boolean Latch
|Name=Boolean Latch
Line 20: Line 20:
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.


{{Note|Data Model Boolean Toggle is a [[ProtoFlux:Data Model Store|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.|information}}
Data Model Boolean Toggle is a [[ProtoFlux:Data Model Store|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.
 
{{Note|Writing directly to the Data Model Store but will write the value but NOT send an impulse of state change.|information}}





Latest revision as of 14:59, 15 April 2026

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.

Writing directly to the Data Model Store but will write the value but NOT send an impulse of state change.


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.