Skip to content

ForEach list loop

Function Description

TIP

Loop through each item in the list for automation operations

ForEach list loop

Configuration Item Description

General

Command Input

  • ListTObject: Input a list

Command Output

  • Store current loop position toInteger: Specify a variable name to store the current loop item's position

  • Store loop item toVariant: Specify a variable name to store the current loop item

Advanced

  • Loop start positionInteger: The starting position of the loop, 0 indicates the first item

  • Loop end positionInteger: The ending position of the loop, -1 indicates the last item, and the result includes the item at the end position

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None