ProtoFlux:Add: Difference between revisions

From Resonite Wiki
add stub
 
This page is no longer a stub.
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"", "Type":"Dummy"},
{"Name":"A", "Type":"Dummy"},
{"Name":"", "Type":"Dummy"}
{"Name":"B", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Name":"", "Type":"Dummy"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}


The '''Add''' node takes in 2 inputs and returns the calculated result. The second input (<code>B</code>) will add to the first input (<code>A</code>).


{{Note|This node is special as it also works with the [[Type:String|String]] type, adding (concatenating) them together.|information}}


{{Note|If you just need to add + 1 to your value, use the [[ProtoFlux:Value Inc|Value Inc]] node instead.
If you need to increment a value from an [[Impulses|impulse]], use the [[ProtoFlux:Increment|Increment]] node instead.|suggestion}}


== Inputs ==


=== A (Pseudo-Generic) ===


The value we have.
=== B (Pseudo-Generic) ===
The value we want to add.
== Outputs ==
=== * (Pseudo-Generic) ===
The new result from this operation.
== See Also ==
* Wikipedia's definition of [https://en.wikipedia.org/wiki/Addition addition].
* Microsoft's documentation on the [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/arithmetic-operators addition] operator.


[[Category:ProtoFlux:Stubs]]
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Strings]]
[[Category:ProtoFlux:Strings]]

Latest revision as of 16:25, 27 June 2024

+
A
*
B
Operators

The Add node takes in 2 inputs and returns the calculated result. The second input (B) will add to the first input (A).

This node is special as it also works with the String type, adding (concatenating) them together.
If you just need to add + 1 to your value, use the Value Inc node instead.

If you need to increment a value from an impulse, use the Increment node instead.

Inputs

A (Pseudo-Generic)

The value we have.

B (Pseudo-Generic)

The value we want to add.

Outputs

* (Pseudo-Generic)

The new result from this operation.

See Also

  • Wikipedia's definition of addition.
  • Microsoft's documentation on the addition operator.