ProtoFlux:Indirect Increment: Difference between revisions

From Resonite Wiki
add enum to note
change to use description template
Line 19: Line 19:
{{Note|Keep in mind this node will only work if given variables that can be increased. Trying to increase a non numeric value like a [[Type:Bool|Boolean]] or [[:Category:Enums|Enum]] will not work. |information}}
{{Note|Keep in mind this node will only work if given variables that can be increased. Trying to increase a non numeric value like a [[Type:Bool|Boolean]] or [[:Category:Enums|Enum]] will not work. |information}}


This is also useful for [[ProtoFlux:Multiplex|Multiplexing]] multiple variables into the Variable ([[Type:Variable|Variable]]) connection on the indirect increment, which can be useful to reduce the nodes needed to increase the values of a set list of variables during a [[ProtoFlux:For|For]] or [[ProtoFlux:While|While]] loop.
{{Template:How To Make Type Variables|Indirect Write Latches}}


== Inputs ==
== Inputs ==

Revision as of 01:53, 3 February 2024

Indirect Increment
*
OnWritten
Variable
OnFail
Indirect

Indirect increments can be commonly found in legacy content that has been migrated from other platforms. Indirect increments take Variable (Variable) as an input, and will increase the value that is wrapped by Variable (Variable) by one.

Keep in mind this node will only work if given variables that can be increased. Trying to increase a non numeric value like a Boolean or Enum will not work.

Variables for Indirect Write Latches can be made using a Field As Variable which can wrap any type (Generic). Variables can also be made by dragging a source of the same wrapped type (ex:Source<String> -> Variable<String>) into any variable input and it will make a special converter to connect them. This can be multiplexed using Multiplexing for using multiple variables into the same input on Indirect Write Latches. Multiplexing the inputs on Indirect Write Latches can be useful in modifying a list of variables during a For or While loop.

Inputs

* (Call)

Call this to increase the value.

Variable (Variable Generic)

The Variable to increment by 1.

Outputs

OnWritten (Continuation)

sends an impulse after * (Call) has been impulsed and the value has been incremented .

OnFail (Continuation)

sends an impulse after * (Call) has been impulsed and the value wasn't able to be incremented due to a missing target or the variable not wrapping a valid IField`1

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.