Boolean Latch (LogiX node)
Boolean Latch | ||
---|---|---|
![]() | ||
Inputs | ||
Impulse | Set | |
Impulse | Reset | |
Impulse | Toggle | |
Outputs | ||
Bool | * | |
Impulse | OnSet | |
Impulse | OnReset |
The Boolean Latch node stores a Boolean value which can be set, reset or toggled by input impulses.
Usage
The Set
impulse input changes the stored bool value to True when an impulse is received.
The Reset
impulse input changes the stored bool value to False when an impulse is received.
The Toggle
impulse input toggles the stored bool value when an impulse is received.
The OnSet
output fires an impulse whenever the stored bool is set to True as a result of an impulse received at Set or Toggle
. An impulse will be fired if an impulse is received at Set
regardless of whether the stored value was actually changed.
The OnReset
output fires an impulse whenever the stored bool is set to False as a result of an impulse received at Reset or Toggle
. An impulse will be fired if an impulse is received at Reset
regardless of whether the stored value was actually changed.
The *
output provides the value of the stored bool.