index

Basic data handling: DataListIndex

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.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (4)

NameTypeRequired
list*required
value*required
startINToptional
endINToptional

Outputs (1)

NameType
indexINT