Skip to main content

Count Loop

Command description

Iterate from the Start Value to the End Value, inclusively, using the specified Step Value. Nested loops are supported.

Command Input Parameters

input parametersInput parameter typeDescription
Start ValueintStart looping from this value
End ValueintStop at (including) this value
Step ValueintAmount added to the index after each iteration

For example, a start value of 1, end value of 10, and increment of 1 produces ten iterations.

Command Output Parameters

Output parametersOutput parameter typeDescription
IndexintCurrent loop value

Example

Repeatedly check whether the image exists. The line execution sequence is 1 -> 2 -> 3 -> 2 -> 3 -> 2 -> 3.