Skip to content

Get List Item Index

Function Description

TIP

Retrieve the position of a specified item in the list, with list positions starting from 0, where 0 is the first item, 1 is the second item, and so on

Configuration Item Description

General

Command Input

  • ListTList<String>: Enter the list variable

  • Specified Item ValueString: Enter the value of the specified item in the list, If it returns to -1, it means that the item does not exist in the list

  • Output TypeInteger: By default, only the first occurrence position is retained, and all positions can be selected to be retained

Command Output

  • Save Position ToInteger: Specify a integer variable to save the position of the found specified item in the list

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