Skip to main content

Loop through number range

Wrk Product avatar
Written by Wrk Product
Updated this week

Loop through a range of numbers. Use “Continue loop” Wrk Action to indicate that the Wrkflow should retrieve the next index in the loop.

Application

  • Loop

Inputs (what you have)

Name

Description

Data Type

Required?

Example

Starting index

The index to start with

Number

Yes

1

Ending index

The index to end with

Number

Yes

10

Continue loop ID

Provided by the “Continue loop” Wrk Action

Text (Short)

No

{UNIQUEID}_0_10

Loop increment

The number to change the index by for each loop. Use negative increment to loop backwards. Defaults to 1

Number

No

1

Outputs (what you get)

Name

Description

Data Type

Required?

Example

Loop ID

Unique identifier for the loop

Text (Short)

No

All

Item index

The item index of the item in the loop

Number

No

1

Outcomes

Name

Description

Success

This status is selected if the job has successfully completed.

Requirements

  • N/A

Did this answer your question?