ProtoFlux:Value Dec: Difference between revisions

From Resonite Wiki
mNo edit summary
Filled in this node page.
 
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Type":"Dummy"}
{"Name":"N", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Type":"Dummy"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}
The -1 node decreases the inputted value by one.
 
[[Category:ProtoFlux:Stubs]]
The '''Value Dec''' node takes in a value and returns that value -1.
 
{{Note|If you need to decrement a value from an [[Impulses|impulse]], use the [[ProtoFlux:Decrement|Decrement]] node instead.
This node is similar to the [[ProtoFlux:Sub|Sub]] node, but setting the sub node to only subtract 1. |suggestion}}
 
== Inputs ==
 
=== N (Pseudo-Generic) ===
 
The value to decrement by 1.
 
== Outputs ==
 
=== * (Pseudo-Generic) ===
 
Returns the decremented value.
 
== See Also ==
* Wikipedia's definition of [https://en.wikipedia.org/wiki/Subtraction subtraction].
* Microsoft's documentation on the [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/arithmetic-operators subtraction] operator.
 
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators]]

Latest revision as of 14:47, 27 June 2024

-1
N
*
Operators

The Value Dec node takes in a value and returns that value -1.

If you need to decrement a value from an impulse, use the Decrement node instead.

This node is similar to the Sub node, but setting the sub node to only subtract 1.

Inputs

N (Pseudo-Generic)

The value to decrement by 1.

Outputs

* (Pseudo-Generic)

Returns the decremented value.

See Also