ProtoFlux:Indirect Decrement

From Resonite Wiki
Revision as of 01:53, 3 February 2024 by 989onan (talk | contribs) (change to use description template)
Indirect Decrement
*
OnWritten
Variable
OnFail
Indirect

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

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

Variables for Indirect Decrement 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 Decrement. Multiplexing the inputs on Indirect Decrement can be useful in modifying a list of variables during a For or While loop.

Inputs

* (Call)

Call this to write the value.

Variable (Variable Generic)

The Variable to decrement by 1.

Outputs

OnWritten (Continuation)

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

OnFail (Continuation)

sends an impulse after * (Call) has been impulsed and the value wasn't able to be decremented 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.