Difference between revisions of "-- (LogiX node) (Actions)"
Jump to navigation
Jump to search
m |
|||
Line 27: | Line 27: | ||
| style="background-color:{{IValue-color}}" | | | style="background-color:{{IValue-color}}" | | ||
| Target | | Target | ||
− | | IValue<nowiki><T></nowiki> | + | | [[:Category:Types:IValue`1|IValue<nowiki><T></nowiki>]] |
|- | |- | ||
| style="background-color:{{Impulse-color}}" | | | style="background-color:{{Impulse-color}}" | |
Revision as of 06:51, 4 September 2020
The -- node in the Actions category reduces the referenced target value by one when it receives an impulse.
Inputs & Outputs
Color | Label | Type |
Decrement | Impulse |
Color | Label | Type |
Target | IValue<T> | |
OnDone | Impulse |
Usage
This node differs from the identically named -- 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 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 -- (LogiX node) (Operators) is likely the better choice.
Examples
Node Menu
Actions | ||||||
---|---|---|---|---|---|---|
Back | -- | ++ | Drive | Drive Playback | Tween | Write |
Write Latch | Write Ref | Write Ref Latch |