Count To..
Overview
Count To.. advances an internal counter until a target is reached, then continues on the normal path. While counting, flow routes through the loop Start path.
Use this when you need to wait for elapsed time or for a number of node executions before proceeding.
Input
Count To
integer requiredTarget value to count to.
Range: 0 to 1000000
Default: 0
Supports dynamic values from references.
Count Mode
string requiredHow the count advances:
TIME— Time: counts elapsed time since the count startedRUN— Each Run: increments by one every time this node is called
Default: TIME
Unit time
stringRequired when Count Mode is TIME. Duration unit for the count target:
MILLISECONDSSECONDSMINUTES
Default: MILLISECONDS
Max Block Time
integerUsed when Count Mode is TIME. When this node is called again and remaining time to the target is less than or equal to this value (milliseconds), the node waits (blocks) for the remaining time instead of returning early.
Range: 0 to 1000
Default: 2
Set to 0 to never block.
Supports dynamic values from references.
Output
Current Count
integerCurrent count value: elapsed time in the selected unit for Time mode, or number of runs for Each Run mode.
Is Count Reached
booleanWhether the count target has been reached.
Loop Flow Behavior
Start path (loopStart)
Used while the count target has not been reached. Connect loop body work here.
Normal output (default handle)
Used when the count target is reached.
End input (loopEnd)
Connect loop body end back to this input to continue counting on the next call.