ProtoFlux:While: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page While (ProtoFlux) to ProtoFlux:While: Creating protoflux Namespace
add more info to while loop, mark as stub
Line 14: Line 14:
]
]
|}}
|}}
{{Stub}}
A While node will start running when * is [[Impulses|impulsed]]. The code will continue running and hold a [[Impulses#Context|context]] until the provided Condition is false or the max execution iterations is hit.
{{Note|If just a [[ProtoFlux:Input|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.|warning}}
Caution should be exercised when using this node.


[[Category:ProtoFlux:Flow]]
[[Category:ProtoFlux:Flow]]

Revision as of 00:13, 4 February 2024

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.

Caution should be exercised when using this node.