Get List Item Position
Command description
Returns the zero-based position of an item's first occurrence, or -1 if the item is not present.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| List | list | List to search |
| List Item | any | Item to locate |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Position | int | The position where the specified item first appears, or -1 if it does not exist |
AI Workflow Generation Notes
- The command uses Python equality rules and returns -1 when the item is not found.