Difference between revisions of "-- (LogiX node) (Actions)"

From Neos Wiki
Jump to navigation Jump to search
m
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<languages></languages>
 
<languages></languages>
 
<translate>
 
<translate>
 +
<!--T:1-->
 
{{Infobox Logix Node
 
{{Infobox Logix Node
 
| Name = --
 
| Name = --
| Image =[[File: DecrementByteNodeNode.png | noframe | 256px | '--' LogiX node ]]
+
| Image =[[File: DecrementByteNodeNode.png | noframe | 128px | '--' LogiX node ]]
 
| Input0Type = Impulse | Input0Name = Decrement
 
| Input0Type = Impulse | Input0Name = Decrement
 
| Output0Type = IValue`1 | Output0Name = Target
 
| Output0Type = IValue`1 | Output0Name = Target
 
| Output1Type = Impulse | Output1Name = OnDone
 
| Output1Type = Impulse | Output1Name = OnDone
 
}}
 
}}
== Intoduction == <!--T:2-->
 
The '''--''' node in the Actions category reduces the referenced target value by one when it receives an impulse.
 
  
 +
<!--T:2-->
 +
The '''--''' node reduces the referenced <code>Target</code> value by one when it receives an impulse at <code>Decrement</code>.
  
 
== Usage == <!--T:3-->
 
== Usage == <!--T:3-->
This node differs from the identically named [[-- (LogiX node) (Operators)|--]] 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.
+
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>.
== Examples ==
 
  
== Node Menu == <!--T:4-->
+
 
 +
<!--T:13-->
 +
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.
 +
 
 +
== Examples == <!--T:4-->
 +
 
 +
== Node Menu == <!--T:5-->
 
</translate>
 
</translate>
  
 
[[Category:LogiX{{#translation:}}|--]]
 
[[Category:LogiX{{#translation:}}|--]]
[[Category:LogiX: Actions{{#translation:}}|--]]
+
[[Category:LogiX:Actions{{#translation:}}|--]]
{{:NodeMenu-Actions{{#translation:}}}}
+
{{NodeMenu-Actions}}

Latest revision as of 05:04, 19 February 2022

Other languages:
English • ‎日本語 • ‎한국어
--
'--' LogiX node
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