Difference between revisions of "-- (LogiX node) (Actions)"
Jump to navigation
Jump to search
(Update to new node style & reflect changed name of -- operators node) |
m |
||
Line 15: | Line 15: | ||
== Usage == <!--T:3--> | == Usage == <!--T:3--> | ||
The <code>OnDone</code> output fires an impulse when the <code>Target</code> value has been decremented. An impulse will not fire if there is no valid <code>Target</code>. This impulse continues the impulse chain which arrived at <code>Decrement</code>. | The <code>OnDone</code> output fires an impulse when the <code>Target</code> value has been decremented. An impulse will not fire if there is no valid <code>Target</code>. This impulse continues the impulse chain which arrived at <code>Decrement</code>. | ||
+ | |||
This node differs from the [[-1 (LogiX node)|-1]] node under Operators since it only makes changes when it receives an impulse. This makes it useful for decrementing a target value (e.g. one stored in a variable node or component e.g. a [[ValueField (Component)|ValueField]]) in a way which is saved and synchronized across all users. If the aim is to decrement a value locally as part of a LogiX calculation the [[-1 (LogiX node)|-1]] node is likely the better choice. | This node differs from the [[-1 (LogiX node)|-1]] node under Operators since it only makes changes when it receives an impulse. This makes it useful for decrementing a target value (e.g. one stored in a variable node or component e.g. a [[ValueField (Component)|ValueField]]) in a way which is saved and synchronized across all users. If the aim is to decrement a value locally as part of a LogiX calculation the [[-1 (LogiX node)|-1]] node is likely the better choice. |
Revision as of 08:07, 10 July 2021
-- | ||
---|---|---|
Inputs | ||
Impulse | Decrement | |
Outputs | ||
IValue`1 | Target | |
Impulse | OnDone |
The -- node reduces the referenced Target
value by one when it receives an impulse at Decrement
.
Usage
The OnDone
output fires an impulse when the Target
value has been decremented. An impulse will not fire if there is no valid Target
. This impulse continues the impulse chain which arrived at Decrement
.
This node differs from the -1 node under Operators since it only makes changes when it receives an impulse. This makes it useful for decrementing a target value (e.g. one stored in a variable node or component e.g. a ValueField) in a way which is saved and synchronized across all users. If the aim is to decrement a value locally as part of a LogiX calculation the -1 node is likely the better choice.
Examples
Node Menu
Actions | ||||||
---|---|---|---|---|---|---|
Back | -- | ++ | Drive | Drive Playback | Tween | Write |
Write Latch | Write Ref | Write Ref Latch |