m node visual wrong |
add enum to note |
||
Line 17: | Line 17: | ||
Indirect decrements take Variable ([[Type:Variable|Variable]]) as an input, and will decrease the value that is wrapped by Variable ([[Type:Variable|Variable]]) by one. | Indirect decrements take Variable ([[Type:Variable|Variable]]) as an input, and will decrease the value that is wrapped by Variable ([[Type:Variable|Variable]]) by one. | ||
{{Note|Keep in mind this node will only work if given variables that can be decremented. Trying to decrement a non numeric value like a [[Type:Bool|Boolean]] will not work. |information}} | {{Note|Keep in mind this node will only work if given variables that can be decremented. Trying to decrement a non numeric value like a [[Type:Bool|Boolean]] or an [[: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 decrement, which can be useful to reduce the nodes needed to decrease the values of a set list of variables during a [[ProtoFlux:For|For]] or [[ProtoFlux:While|While]] loop. | This is also useful for [[ProtoFlux:Multiplex|Multiplexing]] multiple variables into the Variable ([[Type:Variable|Variable]]) connection on the indirect decrement, which can be useful to reduce the nodes needed to decrease the values of a set list of variables during a [[ProtoFlux:For|For]] or [[ProtoFlux:While|While]] loop. |
Revision as of 01:32, 3 February 2024
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.
This is also useful for Multiplexing multiple variables into the Variable (Variable) connection on the indirect decrement, which can be useful to reduce the nodes needed to decrease the values of a set 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.