ComfyUI Node
index
Returns the index of the first occurrence of a value in a list. This node takes a list and a value as inputs, then returns the index of the first occurrence of the value. Optional start and end parameters limit the search to a slice of the list. Returns -1 if the value is not present.
index
- list
- value
- index
◄start0►
◄end-1►
CategoryBasic/Data List
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| list | * | — | |
| value | * | — | |
| startopt | INT | 0 | — |
| endopt | INT | -1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| index | INT | — |