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

From Neos Wiki
Jump to navigation Jump to search
(Temporarily copy image from redundant page)
(Update page to new format)
Line 1: Line 1:
In programming, increment ++ operator increases the value of a variable by 1 and decrement -- operator decreases the value of a variable by 1.
+
<languages></languages>
<br>There are 2 Variations of this node. The node under [[:Catagory:LogiX: Operators|Operators]] calculates on change locally while the node under [[LogiX: Action]] writes to a variable for all users.<br><br>
+
<translate>
Accepted Datatypes:<br>
+
The '''--''' node in the Actions category reduces the referenced target value by one when it receives an impulse.
[[Float]]<br>
 
[[Integer]]
 
  
[[File:Action--.jpg]]
+
[[File:Action--.jpg|border|256px|right]]
 +
 
 +
== Inputs & Outputs ==
 +
{| class="wikitable"
 +
|+Inputs
 +
|-
 +
| Color
 +
| Label
 +
| Type
 +
|-
 +
| style="background-color:{{Impulse-color}}" |
 +
| Decrement
 +
| Impulse
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+Outputs
 +
|-
 +
| Color
 +
| Label
 +
| Type
 +
|-
 +
| style="background-color:{{IValue-color}}" |
 +
| Target
 +
| IValue<nowiki><T></nowiki>
 +
|-
 +
| style="background-color:{{Impulse-color}}" |
 +
| OnDone
 +
| Impulse
 +
|}
 +
 
 +
== Usage ==
 +
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 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 ==
 +
</translate>
 +
 
 +
[[Category:LogiX|LogiX]]
 +
[[Category:LogiX: Actions|LogiX: Actions]]
 +
{{:NodeMenu-Actions}}

Revision as of 07:37, 12 July 2020

Other languages:
English • ‎日本語 • ‎한국어

The -- node in the Actions category reduces the referenced target value by one when it receives an impulse.

Action--.jpg

Inputs & Outputs

Inputs
Color Label Type
Decrement Impulse
Outputs
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 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