Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:While

From Resonite Wiki
Revision as of 08:12, 6 February 2024 by Colin The Cat (talk | contribs) (Add hint to prefer For-Loops where possible)
While
*
LoopStart
Condition
LoopIteration
LoopEnd
Flow
This article or section is a stub. You can help the Resonite wiki by expanding it.

A While node will start running when * is impulsed. The code will continue running and hold a context until the provided Condition is false or the max execution iterations is hit.

If just a Input with the type boolean set to true is provided, the code will not be able to stop and will error the entire Flux chain once max iterations is it, stopping execution.

Caution should be exercised when using this node. If it is easy to determine how often the loop is going to execute, a For-Loop should be preferred to avoid accidentally crashing the game.